From 64268046ab2e39ae1dc45ab43d91890d2492793e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 13 Jun 2012 20:28:43 +0530 Subject: [PATCH] AZW3 Output: Fix TOC at start option not working --- src/calibre/ebooks/mobi/writer8/toc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/mobi/writer8/toc.py b/src/calibre/ebooks/mobi/writer8/toc.py index 2c90a06f8c..313c454535 100644 --- a/src/calibre/ebooks/mobi/writer8/toc.py +++ b/src/calibre/ebooks/mobi/writer8/toc.py @@ -73,7 +73,7 @@ class TOCAdder(object): id, href = oeb.manifest.generate('contents', 'contents.xhtml') item = self.generated_item = oeb.manifest.add(id, href, XHTML_MIME, data=root) - if opts.mobi_toc_at_start == 'end': + if self.at_start: oeb.spine.insert(0, item, linear=True) else: oeb.spine.add(item, linear=False)