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

This commit is contained in:
Georg Brandl 2010-05-30 14:46:57 +02:00
parent 3aa60e2833
commit f61e02799b

View File

@ -1027,6 +1027,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 \