epub has duplicated nav.xhtml link except first time

This commit is contained in:
Yoshiki Shibukawa 2017-02-27 07:57:08 +09:00
parent 1c4112b9cc
commit b1808e7cd5
2 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,8 @@ Bugs fixed
* #3445: setting ``'inputenc'`` key to ``\\usepackage[utf8x]{inputenc}`` leads
to failed PDF build
* EPUB file has duplicated ``nav.xhtml`` link in ``content.opf``
except first time build
Testing
--------

View File

@ -570,7 +570,7 @@ class EpubBuilder(StandaloneHTMLBuilder):
self.ignored_files = ['.buildinfo', 'mimetype', 'content.opf',
'toc.ncx', 'META-INF/container.xml',
'Thumbs.db', 'ehthumbs.db', '.DS_Store',
self.config.epub_basename + '.epub'] + \
'nav.xhtml', self.config.epub_basename + '.epub'] + \
self.config.epub_exclude_files
if not self.use_index:
self.ignored_files.append('genindex' + self.out_suffix)