mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Switch off pagerefs in production lists.
This commit is contained in:
parent
ded4bee328
commit
d02d07e992
@ -1117,7 +1117,8 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
||||
# references to labels in the same document
|
||||
id = self.curfilestack[-1] + ':' + uri[1:]
|
||||
self.body.append(self.hyperlink(id))
|
||||
if self.builder.config.latex_show_pagerefs:
|
||||
if self.builder.config.latex_show_pagerefs and not \
|
||||
self.in_productionlist:
|
||||
self.context.append('}} (%s)' % self.hyperpageref(id))
|
||||
else:
|
||||
self.context.append('}}')
|
||||
|
Loading…
Reference in New Issue
Block a user