Commits

Chris McDonough committed 257e8a4

Make text writer skip raw nodes it doesn't know about.

  • Participants
  • Parent commits 2e666ce

Comments (0)

Files changed (1)

sphinx/writers/text.py

         # 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__)