Fix `\sphinxbfcode` latex macro swallows initial space of argument

This commit is contained in:
jfbu 2017-06-19 10:53:51 +02:00
parent ab2cc9d8f1
commit 0b70314f66
2 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ Bugs fixed
* #3850: Fix color handling in make mode's help command
* #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
Testing
--------

View File

@ -1402,7 +1402,7 @@
\lowercase{\endgroup\def~{\leavevmode\kern\z@\char`#1 }}}
\def\sphinx@literal@nolig@list {\do\`\do\<\do\>\do\'\do\-}%
\protected\def\sphinxbfcode#1{\sphinxcode{\bfseries#1}}
\protected\def\sphinxbfcode#1{\sphinxcode{\bfseries{}#1}}
\protected\def\sphinxemail#1{\textsf{#1}}
\protected\def\sphinxtablecontinued#1{\textsf{#1}}
\protected\def\sphinxtitleref#1{\emph{#1}}