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

This commit is contained in:
Georg Brandl 2010-06-05 18:30:43 +02:00
parent 8c7e288129
commit b50e09e33e
2 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,9 @@ Release 0.6.7 (in development)
* #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)
============================

View File

@ -1043,6 +1043,8 @@ class LaTeXTranslator(nodes.NodeVisitor):
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 \