This commit is contained in:
Kovid Goyal 2012-04-27 00:09:57 +05:30
parent fdf4252b45
commit c88a4f44c8

View File

@ -58,7 +58,7 @@ class TOCAdder(object):
else: else:
oeb.guide.remove('toc') oeb.guide.remove('toc')
if not self.has_toc or 'toc' in oeb.guide: if not self.has_toc or 'toc' in oeb.guide or opts.no_inline_toc:
return return
self.log('\tGenerating in-line ToC') self.log('\tGenerating in-line ToC')