mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#2465: latex builder fails in case no caption option is provided to toctree directive
This commit is contained in:
parent
becc54702a
commit
88322af1ea
1
CHANGES
1
CHANGES
@ -22,6 +22,7 @@ Bugs fixed
|
|||||||
* #2456: C++, fix crash related to document merging (e.g., singlehtml and Latex builders).
|
* #2456: C++, fix crash related to document merging (e.g., singlehtml and Latex builders).
|
||||||
* #2446: latex(pdf) sets local tables of contents (or more generally topic nodes) in unbreakable boxes, causes overflow at bottom
|
* #2446: latex(pdf) sets local tables of contents (or more generally topic nodes) in unbreakable boxes, causes overflow at bottom
|
||||||
* #2476: Omit MathJax markers if :nowrap: is given
|
* #2476: Omit MathJax markers if :nowrap: is given
|
||||||
|
* #2465: latex builder fails in case no caption option is provided to toctree directive
|
||||||
|
|
||||||
|
|
||||||
Release 1.4.1 (released Apr 12, 2016)
|
Release 1.4.1 (released Apr 12, 2016)
|
||||||
|
@ -137,7 +137,7 @@ class LaTeXBuilder(Builder):
|
|||||||
tree = self.env.get_doctree(indexfile)
|
tree = self.env.get_doctree(indexfile)
|
||||||
contentsname = None
|
contentsname = None
|
||||||
for toctree in tree.traverse(addnodes.toctree):
|
for toctree in tree.traverse(addnodes.toctree):
|
||||||
if toctree['caption']:
|
if 'caption' in toctree:
|
||||||
contentsname = toctree['caption']
|
contentsname = toctree['caption']
|
||||||
break
|
break
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user