From 034898944b3ac5a3326545f72a616de88d5424fe Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 6 Nov 2014 21:26:00 +0100 Subject: Closes #1619: missing in_production_list check for latex writer --- sphinx/writers/latex.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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('}}') -- cgit v1.2.1