summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjfbu <jfbu@free.fr>2017-06-19 10:55:12 +0200
committerjfbu <jfbu@free.fr>2017-06-19 11:02:05 +0200
commit0a805ce03ba39d521e7282e4f9e405f801c28726 (patch)
tree884c1413c94de71683928c2ee3e562d0415af276
parent0b70314f66523e0a80f343019714908e723ab699 (diff)
downloadsphinx-git-0a805ce03ba39d521e7282e4f9e405f801c28726.tar.gz
latex: Fix #3878 by using ``\sphinxbfcode`` and not ``\sphinxstrong``
-rw-r--r--CHANGES2
-rw-r--r--sphinx/writers/latex.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index d50694b50..de1ed92b7 100644
--- a/CHANGES
+++ b/CHANGES
@@ -30,6 +30,8 @@ Bugs fixed
* #3865: use of self.env.warn in sphinx extension fails
* #3824: production lists apply smart quotes transform since Sphinx 1.6.1
* latex: fix ``\sphinxbfcode`` swallows initial space of argument
+* #3878: Quotes in auto-documented class attributes should be straight quotes
+ in PDF output
Testing
--------
diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py
index 92383a642..abb27f945 100644
--- a/sphinx/writers/latex.py
+++ b/sphinx/writers/latex.py
@@ -1231,7 +1231,7 @@ class LaTeXTranslator(nodes.NodeVisitor):
def visit_desc_annotation(self, node):
# type: (nodes.Node) -> None
- self.body.append(r'\sphinxstrong{')
+ self.body.append(r'\sphinxbfcode{')
def depart_desc_annotation(self, node):
# type: (nodes.Node) -> None