classification
Title: Code sample does not collapse correctly
Type: behavior Stage: resolved
Components: Documentation Versions: Python 3.2, Python 3.3, Python 3.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: asvetlov, docs@python, fossilet, python-dev
Priority: normal Keywords:

Created on 2012-10-17 12:48 by fossilet, last changed 2012-10-17 13:48 by asvetlov. This issue is now closed.

Messages (3)
msg173163 - (view) Author: Yongzhi Pan (fossilet) * Date: 2012-10-17 12:48
http://docs.python.org/py3k/tutorial/inputoutput.html#fancier-output-formatting

In the last but second code sample in that section, the code is not correctly colored and cannot be correctly collapsed.

Expanded:

>>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 8637678}
>>> print ('Jack: {0[Jack]:d}; Sjoerd: {0[Sjoerd]:d}; '
...        'Dcab: {0[Dcab]:d}'.format(table))
Jack: 4098; Sjoerd: 4127; Dcab: 8637678

Collapsed:

table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 8637678}
print('Jack: {0[Jack]:d}; Sjoerd: {0[Sjoerd]:d}; '
msg173173 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-10-17 13:47
New changeset a0fba0382ae0 by Andrew Svetlov in branch '3.2':
Issue #16265: Fix collapsing of code sample in tutorial.
http://hg.python.org/cpython/rev/a0fba0382ae0

New changeset 7c0de8be4eaf by Andrew Svetlov in branch '3.3':
Merge issue #16265: Fix collapsing of code sample in tutorial.
http://hg.python.org/cpython/rev/7c0de8be4eaf

New changeset c8a11e9a0217 by Andrew Svetlov in branch 'default':
Merge issue #16265: Fix collapsing of code sample in tutorial.
http://hg.python.org/cpython/rev/c8a11e9a0217
msg173174 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2012-10-17 13:48
Fixed. Thanks.
History
Date User Action Args
2012-10-17 13:48:26asvetlovsetstatus: open -> closed

versions: + Python 3.4
nosy: + asvetlov

messages: + msg173174
resolution: fixed
stage: resolved
2012-10-17 13:47:51python-devsetnosy: + python-dev
messages: + msg173173
2012-10-17 12:48:50fossiletcreate