merge with 0.6

This commit is contained in:
Georg Brandl 2010-05-24 15:26:40 +02:00
commit f334ef6efd
2 changed files with 7 additions and 0 deletions

View File

@ -136,6 +136,8 @@ Features added
Release 0.6.6 (in development)
==============================
* Handle raw nodes in the ``text`` writer.
* Fix a problem the Qt help project generated by the ``qthelp``
builder that would lead to no content being displayed in the Qt
Assistant.

View File

@ -706,5 +706,10 @@ class TextTranslator(nodes.NodeVisitor):
# only valid for HTML
raise nodes.SkipNode
def visit_raw(self, node):
if 'text' in node.get('format', '').split():
self.body.append(node.astext())
raise nodes.SkipNode
def unknown_visit(self, node):
raise NotImplementedError('Unknown node: ' + node.__class__.__name__)