Make TOC for FB2 default to not included.

This commit is contained in:
John Schember 2009-08-11 18:35:24 -04:00
parent eab0d189b0
commit 12c99d6a9d
2 changed files with 3 additions and 3 deletions

View File

@ -118,7 +118,7 @@ class FB2MLizer(object):
def get_toc(self):
toc = u''
if not self.opts.no_inline_toc:
if self.opts.inline_toc:
self.log.debug('Generating table of contents...')
toc += u'<p>%s</p>' % _('Table of Contents:')
for item in self.oeb_book.toc:

View File

@ -16,9 +16,9 @@ class FB2Output(OutputFormatPlugin):
file_type = 'fb2'
options = set([
OptionRecommendation(name='no_inline_toc',
OptionRecommendation(name='inline_toc',
recommended_value=False, level=OptionRecommendation.LOW,
help=_('Don\'t add Table of Contents to the book. Useful if '
help=_('Add Table of Contents to begenning of the book. Useful if '
'the book has its own table of contents.')),
])