homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: text output pretends to be code
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.2, Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, eric.araujo, ezio.melotti, orsenthil, tshepang
Priority: normal Keywords: patch

Created on 2012年03月07日 08:19 by tshepang, last changed 2022年04月11日 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
tis-not-code.patch tshepang, 2012年03月07日 08:19 review
tis-not-code-2.patch tshepang, 2012年03月08日 10:06 review
Messages (7)
msg155056 - (view) Author: Tshepang Lekhonkhobe (tshepang) * Date: 2012年03月07日 08:19
The attached patch removes the highlighting. I hope there's a better way to do this, instead of this hack. I searched the Sphinx and docutils docs and failed to find something better.
msg155128 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012年03月07日 22:33
Use this:
.. code-block:: none
 output etc.
msg155156 - (view) Author: Tshepang Lekhonkhobe (tshepang) * Date: 2012年03月08日 10:06
> Éric Araujo <merwok@netwok.org> added the comment:
>
> Use this:
>
> .. code-block:: none
>
>  output etc.
Thanks much. I've attached a patch.
msg155206 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2012年03月09日 05:00
I reviewed the patch, built the docs and found it good.
Fixed it in 3d877dee1bde and aaf45928899c 
Thanks!
msg155611 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012年03月13日 14:03
This issue does not apply to 2.7 docs because they lack the local/nonlocal assignment example; do you agree it would be good to backport that?
Tshepang, if you find more instances of the same problem, please report them. Thanks!
msg155806 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2012年03月14日 22:04
Éric - not really. nonlocal is from python3.x onwards only.
msg155823 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012年03月15日 00:14
I thought nonlocal had been backported to 2.7 but you’re right, it was not.
History
Date User Action Args
2022年04月11日 14:57:27adminsetgithub: 58425
2012年03月15日 00:14:46eric.araujosetmessages: + msg155823
stage: patch review -> resolved
2012年03月14日 22:04:34orsenthilsetmessages: + msg155806
2012年03月13日 14:03:32eric.araujosetmessages: + msg155611
2012年03月09日 05:00:10orsenthilsetstatus: open -> closed
versions: - Python 2.7
nosy: + orsenthil

messages: + msg155206

resolution: fixed
2012年03月08日 10:32:57ezio.melottisetnosy: + ezio.melotti

type: enhancement
stage: patch review
2012年03月08日 10:06:16tshepangsetfiles: + tis-not-code-2.patch

messages: + msg155156
2012年03月07日 22:33:12eric.araujosetnosy: + eric.araujo

messages: + msg155128
versions: + Python 2.7, - Python 3.1
2012年03月07日 08:19:11tshepangcreate

AltStyle によって変換されたページ (->オリジナル) /