From cbbb32175a20f9bf5728f6aa19c1dc8be56c42db Mon Sep 17 00:00:00 2001 From: milde Date: Fri, 13 Mar 2015 14:54:46 +0000 Subject: [PATCH] Clarify the use of "pycon" for "Python console" code. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7829 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- RELEASE-NOTES.txt | 4 ++-- docutils/writers/html_base/__init__.py | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt index 327f049f8..dc1c39330 100644 --- a/RELEASE-NOTES.txt +++ b/RELEASE-NOTES.txt @@ -29,8 +29,8 @@ Future changes * »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. diff --git a/docutils/writers/html_base/__init__.py b/docutils/writers/html_base/__init__.py index 6dac17d65..76a88cffc 100644 --- a/docutils/writers/html_base/__init__.py +++ b/docutils/writers/html_base/__init__.py @@ -753,10 +753,9 @@ class HTMLTranslator(nodes.NodeVisitor): def depart_docinfo_item(self): self.body.append('\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\n') -- 2.11.4.GIT