Commits

Jon Waltman committed 6fda17f

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

Comments (0)

Files changed (1)

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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.