Commits

Jon Waltman committed 6fda17f

Add stubs for missing node handlers in Texinfo and remove unnecessary ones.

  • Participants
  • Parent commits 90afd26

Comments (0)

Files changed (1)

File sphinx/writers/texinfo.py

     def visit_generated(self, node):
         raise nodes.SkipNode
 
+    def visit_header(self, node):
+        raise nodes.SkipNode
+
+    def visit_footer(self, node):
+        raise nodes.SkipNode
+
+    def visit_container(self, node):
+        pass
+    def depart_container(self, node):
+        pass
+
+    def visit_decoration(self, node):
+        pass
+    def depart_decoration(self, node):
+        pass
+
     def visit_topic(self, node):
         # ignore TOC's since we have to have a "menu" anyway
         if 'contents' in node.get('classes', []):
         self.depart_literal_block(None)
         raise nodes.SkipNode
 
+    def visit_production(self, node):
+        pass
+    def depart_production(self, node):
+        pass
+
     def visit_literal_emphasis(self, node):
         self.body.append('@code{')
     def depart_literal_emphasis(self, node):
         self.body.append('}')
 
-    def visit_module(self, node):
-        modname = escape_id(node['modname'])
-        self.add_anchor(modname, node)
-        self.body.append('}')
-
     def visit_index(self, node):
         for entry in node['entries']:
             typ, text, tid, text2 = entry
             text = escape_menu(text)
             self.body.append('@geindex %s\n' % text)
 
-    def visit_autosummary_table(self, node):
-        pass
-    def depart_autosummary_table(self, node):
-        pass
-
-    def visit_todo_node(self, node):
-        self.visit_transition(node)
-        self.visit_admonition(node)
-    def depart_todo_node(self, node):
-        self.depart_admonition(node)
-        self.visit_transition(node)
-
     def visit_refcount(self, node):
         self.body.append('\n')
     def depart_refcount(self, node):
         pass
     def depart_hlistcol(self, node):
         pass
+
+    def visit_pending_xref(self, node):
+        pass
+    def depart_pending_xref(self, node):
+        pass