|
From: <mi...@us...> - 2015-03-13 14:54:54
|
Revision: 7829
http://sourceforge.net/p/docutils/code/7829
Author: milde
Date: 2015-03-13 14:54:46 +0000 (Fri, 13 Mar 2015)
Log Message:
-----------
Clarify the use of "pycon" for "Python console" code.
Modified Paths:
--------------
trunk/docutils/RELEASE-NOTES.txt
trunk/docutils/docutils/writers/html_base/__init__.py
Modified: trunk/docutils/RELEASE-NOTES.txt
===================================================================
--- trunk/docutils/RELEASE-NOTES.txt 2015-03-13 13:38:56 UTC (rev 7828)
+++ trunk/docutils/RELEASE-NOTES.txt 2015-03-13 14:54:46 UTC (rev 7829)
@@ -29,8 +29,8 @@
* »Prune« the doctree (no change to the reST input syntax):
- - "doctest" element -> literal block with 'pycon' class argument
- and syntax highlight (like the "code" directive),
+ - "doctest" element -> literal block with "pycon" (python-console)
+ class argument and syntax highlight (like the "code" directive),
- special admonitions (note, hint, warning, ...) -> generic "admonition"
element with class attribute and auto-generated title.
Modified: trunk/docutils/docutils/writers/html_base/__init__.py
===================================================================
--- trunk/docutils/docutils/writers/html_base/__init__.py 2015-03-13 13:38:56 UTC (rev 7828)
+++ trunk/docutils/docutils/writers/html_base/__init__.py 2015-03-13 14:54:46 UTC (rev 7829)
@@ -753,10 +753,9 @@
def depart_docinfo_item(self):
self.body.append('</dd>\n')
- # TODO: RSt-parser should treat this as code-block with class "pycon".
def visit_doctest_block(self, node):
self.body.append(self.starttag(node, 'pre', suffix='',
- CLASS='code pycon doctest-block'))
+ CLASS='code python doctest'))
def depart_doctest_block(self, node):
self.body.append('\n</pre>\n')
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|