[docs] [issue14217] text output pretends to be code

Tshepang Lekhonkhobe report at bugs.python.org
Thu Mar 8 11:06:17 CET 2012


Tshepang Lekhonkhobe <tshepang at gmail.com> added the comment:
> Éric Araujo <merwok at netwok.org> added the comment:
>> Use this:
>> .. code-block:: none
>>   output etc.

Thanks much. I've attached a patch.
----------
Added file: http://bugs.python.org/file24757/tis-not-code-2.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14217>
_______________________________________
-------------- next part --------------
diff -r b8be6ac4395d Doc/tutorial/classes.rst
--- a/Doc/tutorial/classes.rst	Wed Mar 07 08:55:52 2012 +0100
+++ b/Doc/tutorial/classes.rst	Thu Mar 08 12:03:20 2012 +0200
@@ -180,7 +180,9 @@
 scope_test()
 print("In global scope:", spam)
 
-The output of the example code is::
+The output of the example code is:
+
+.. code-block:: none
 
 After local assignment: test spam
 After nonlocal assignment: nonlocal spam


More information about the docs mailing list

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