mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Respect "refid" attributes of reference nodes; this prevented references to labels in the same file.
This commit is contained in:
parent
3aa60e2833
commit
f61e02799b
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user