Commits

Georg Brandl  committed eceabee

#146: Don't fail to generate LaTeX when the user has an active
``.docutils`` configuration.

  • Participants
  • Parent commits 9528c37

Comments (0)

Files changed (3)

 Sphinx.egg-info/
 doc/_build/
 TAGS
+\.ropeproject/
 Release 0.6.2 (in development)
 ==============================
 
+* #146: Don't fail to generate LaTeX when the user has an active
+  ``.docutils`` configuration.
+
 * #29: Don't generate visible "-{-}" in option lists in LaTeX.
 
 * Fix cross-reference roles when put into substitutions.

File sphinx/writers/latex.py

     def depart_decoration(self, node):
         pass
 
+    # docutils-generated elements that we don't support
+
+    def visit_header(self, node):
+        raise nodes.SkipNode
+
+    def visit_footer(self, node):
+        raise nodes.SkipNode
+
+    def visit_docinfo(self, node):
+        raise nodes.SkipNode
+
     # text handling
 
     def encode(self, text):