summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-11-06 21:26:10 +0100
committerGeorg Brandl <georg@python.org>2014-11-06 21:26:10 +0100
commit4dbb3f4cf65fb0aebaae0534726bac940a6abed7 (patch)
treec0a1e28c632bc473368d48697c8f9f43259edc1d
parenta281bb40c09fd483b5ee25778cc91dc01b37f0f1 (diff)
parent034898944b3ac5a3326545f72a616de88d5424fe (diff)
downloadsphinx-4dbb3f4cf65fb0aebaae0534726bac940a6abed7.tar.gz
merge with stable
-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 dd85a806..09818493 100644
--- a/sphinx/writers/latex.py
+++ b/sphinx/writers/latex.py
@@ -1236,7 +1236,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('}}')