From d1023efd1ef82f3d019924843a3a1cb97de7cc72 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 19 Dec 2013 14:08:08 +0530 Subject: [PATCH] AZW3 Output: Do not refuse to create the ToC if it has only a single entry --- src/calibre/ebooks/mobi/writer8/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/mobi/writer8/main.py b/src/calibre/ebooks/mobi/writer8/main.py index f0cbcf5c86..781fdec779 100644 --- a/src/calibre/ebooks/mobi/writer8/main.py +++ b/src/calibre/ebooks/mobi/writer8/main.py @@ -331,7 +331,7 @@ class KF8Writer(object): 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