mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Handle raw nodes in the `text` writer.
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -1,6 +1,8 @@
|
|||||||
Release 0.6.6 (in development)
|
Release 0.6.6 (in development)
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
|
* Handle raw nodes in the ``text`` writer.
|
||||||
|
|
||||||
* Fix a problem the Qt help project generated by the ``qthelp``
|
* Fix a problem the Qt help project generated by the ``qthelp``
|
||||||
builder that would lead to no content being displayed in the Qt
|
builder that would lead to no content being displayed in the Qt
|
||||||
Assistant.
|
Assistant.
|
||||||
|
|||||||
@@ -713,5 +713,10 @@ class TextTranslator(nodes.NodeVisitor):
|
|||||||
# only valid for HTML
|
# only valid for HTML
|
||||||
raise nodes.SkipNode
|
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):
|
def unknown_visit(self, node):
|
||||||
raise NotImplementedError('Unknown node: ' + node.__class__.__name__)
|
raise NotImplementedError('Unknown node: ' + node.__class__.__name__)
|
||||||
|
|||||||
Reference in New Issue
Block a user