Ned Batchelder committed 2f2cfd2

Get id attributes into the .px files so they'll be in the HTML so links into documents will work right.

Comments (0)

Files changed (1)


         if self.section_level == 1:
             raise nodes.SkipNode
+            # The id for the h2 tag is on the parent, move it 
+            # down here so we'll get the right HTML.
+            if not node['ids'] and len(node.parent['ids']) > 1:
+                node['ids'] = [node.parent['ids'][1]]
             BaseHtmlXlator.visit_title(self, node)
     def visit_field_list(self, node):