mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 11:23:42 +02:00
AZW3 Output: Do not refuse to create the ToC if it has only a single entry
This commit is contained in:
parent
a67fe73a30
commit
d1023efd1e
1 changed files with 1 additions and 1 deletions
|
|
@ -331,7 +331,7 @@ def create_indices(self):
|
|||
toc = self.oeb.toc
|
||||
entries = []
|
||||
is_periodical = self.opts.mobi_periodical
|
||||
if toc.count() < 2:
|
||||
if toc.count() < 1:
|
||||
self.log.warn('Document has no ToC, MOBI will have no NCX index')
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue