mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix a bug that prevented some references being generated in the LaTeX builder.
This commit is contained in:
parent
8c7e288129
commit
b50e09e33e
3
CHANGES
3
CHANGES
@ -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)
|
||||
============================
|
||||
|
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user