mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #3675 from tk0miya/3657_epub_builder_crashes
Fix #3657: EPUB builder crashes if document startswith genindex exists
This commit is contained in:
commit
44f9146488
1
CHANGES
1
CHANGES
@ -16,6 +16,7 @@ Bugs fixed
|
|||||||
* #3614: Sphinx crashes with requests-2.5.0
|
* #3614: Sphinx crashes with requests-2.5.0
|
||||||
* #3618: autodoc crashes with tupled arguments
|
* #3618: autodoc crashes with tupled arguments
|
||||||
* #3664: No space after the bullet in items of a latex list produced by Sphinx
|
* #3664: No space after the bullet in items of a latex list produced by Sphinx
|
||||||
|
* #3657: EPUB builder crashes if document startswith genindex exists
|
||||||
|
|
||||||
Testing
|
Testing
|
||||||
--------
|
--------
|
||||||
|
@ -500,7 +500,7 @@ class EpubBuilder(StandaloneHTMLBuilder):
|
|||||||
This method is overwritten for genindex pages in order to fix href link
|
This method is overwritten for genindex pages in order to fix href link
|
||||||
attributes.
|
attributes.
|
||||||
"""
|
"""
|
||||||
if pagename.startswith('genindex'):
|
if pagename.startswith('genindex') and 'genindexentries' in addctx:
|
||||||
if not self.use_index:
|
if not self.use_index:
|
||||||
return
|
return
|
||||||
self.fix_genindex(addctx['genindexentries'])
|
self.fix_genindex(addctx['genindexentries'])
|
||||||
|
Loading…
Reference in New Issue
Block a user