AZW3 Output: Do not refuse to create the ToC if it has only a single entry

This commit is contained in:
Kovid Goyal 2013-12-19 14:08:08 +05:30
parent a67fe73a30
commit d1023efd1e

View File

@ -331,7 +331,7 @@ class KF8Writer(object):
toc = self.oeb.toc toc = self.oeb.toc
entries = [] entries = []
is_periodical = self.opts.mobi_periodical 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') self.log.warn('Document has no ToC, MOBI will have no NCX index')
return return