mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fixes #1923: Use babel features only if the babel latex element is nonempty.
This commit is contained in:
parent
468568bdcf
commit
e4b42fe15f
3
CHANGES
3
CHANGES
@ -33,7 +33,8 @@ Bugs fixed
|
|||||||
* #1949: Use ``safe_getattr`` in the coverage builder to avoid aborting with
|
* #1949: Use ``safe_getattr`` in the coverage builder to avoid aborting with
|
||||||
descriptors that have custom behavior.
|
descriptors that have custom behavior.
|
||||||
* #1915: Do not generate smart quotes in doc field type annotations.
|
* #1915: Do not generate smart quotes in doc field type annotations.
|
||||||
* #1796, On py3, automated .mo building cause UnicodeDecodeError
|
* #1796: On py3, automated .mo building caused UnicodeDecodeError.
|
||||||
|
* #1923: Use babel features only if the babel latex element is nonempty.
|
||||||
|
|
||||||
|
|
||||||
Release 1.3.1 (released Mar 17, 2015)
|
Release 1.3.1 (released Mar 17, 2015)
|
||||||
|
@ -342,8 +342,12 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
|||||||
else:
|
else:
|
||||||
language = 'english'
|
language = 'english'
|
||||||
|
|
||||||
|
if self.elements['babel']:
|
||||||
babel_prefix = '\\addto\\captions%s{' % language
|
babel_prefix = '\\addto\\captions%s{' % language
|
||||||
babel_suffix = '}'
|
babel_suffix = '}'
|
||||||
|
else:
|
||||||
|
babel_prefix = ''
|
||||||
|
babel_suffix = ''
|
||||||
|
|
||||||
figure = self.builder.config.numfig_format['figure'].split('%s', 1)
|
figure = self.builder.config.numfig_format['figure'].split('%s', 1)
|
||||||
if len(figure) == 1:
|
if len(figure) == 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user