summaryrefslogtreecommitdiff
path: root/sphinx
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-11-06 21:26:00 +0100
committerGeorg Brandl <georg@python.org>2014-11-06 21:26:00 +0100
commit034898944b3ac5a3326545f72a616de88d5424fe (patch)
tree2890f255f76b72c8be00310b06ebdf7f85a2dd63 /sphinx
parentf887ae16257cdb0ef9d4dd89136e379dc85875fb (diff)
downloadsphinx-034898944b3ac5a3326545f72a616de88d5424fe.tar.gz
Closes #1619: missing in_production_list check for latex writer
Diffstat (limited to 'sphinx')
-rw-r--r--sphinx/writers/latex.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py
index 8c9b1f5c..eb637fc3 100644
--- a/sphinx/writers/latex.py
+++ b/sphinx/writers/latex.py
@@ -1209,7 +1209,8 @@ class LaTeXTranslator(nodes.NodeVisitor):
# don't add a pageref for glossary terms
self.context.append('}}')
else:
- if self.builder.config.latex_show_pagerefs:
+ if self.builder.config.latex_show_pagerefs and not \
+ self.in_production_list:
self.context.append('}} (%s)' % self.hyperpageref(id))
else:
self.context.append('}}')