AZW3 Output: Fix TOC at start option not working

This commit is contained in:
Kovid Goyal 2012-06-13 20:28:43 +05:30
parent 34837c3cb5
commit 64268046ab

View File

@ -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)