[Python-checkins] r61389 - doctools/trunk/sphinx/htmlwriter.py
georg.brandl
python-checkins at python.org
Fri Mar 14 23:35:04 CET 2008
Author: georg.brandl
Date: Fri Mar 14 23:35:04 2008
New Revision: 61389
Modified:
doctools/trunk/sphinx/htmlwriter.py
Log:
Correctly handle doctest blocks in HTML writer.
Modified: doctools/trunk/sphinx/htmlwriter.py
==============================================================================
--- doctools/trunk/sphinx/htmlwriter.py (original)
+++ doctools/trunk/sphinx/htmlwriter.py Fri Mar 14 23:35:04 2008
@@ -187,6 +187,9 @@
self.body.append(self.highlighter.highlight_block(node.rawsource, lang, linenos))
raise nodes.SkipNode
+ def visit_doctest_block(self, node):
+ self.visit_literal_block(node)
+
# overwritten
def visit_literal(self, node):
if len(node.children) == 1 and \
More information about the Python-checkins
mailing list