Commits

Georg Brandl committed b09697b

Respect "refid" attributes of reference nodes; this prevented references to labels in the same file.

  • Participants
  • Parent commits ec62646

Comments (0)

Files changed (1)

sphinx/writers/latex.py

 
     def visit_reference(self, node):
         uri = node.get('refuri', '')
+        if not uri and node.get('refid'):
+            uri = '%' + self.curfilestack[-1] + '#' + node['refid']
         if self.in_title or not uri:
             self.context.append('')
         elif uri.startswith('mailto:') or uri.startswith('http:') or \