Commits

Georg Brandl committed 44f7866

Fix a bug that prevented some references being generated in the LaTeX builder.

  • Participants
  • Parent commits c31b2b8

Comments (0)

Files changed (2)

 * #440: Remove usage of a Python >= 2.5 API in the ``literalinclude``
   directive.
 
+* Fix a bug that prevented some references being generated in the
+  LaTeX builder.
+
 
 Release 0.6.6 (May 25, 2010)
 ============================

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 \