diff --git a/src/calibre/ebooks/fb2/fb2ml.py b/src/calibre/ebooks/fb2/fb2ml.py index a30fdd94f4..0da7ba49ed 100644 --- a/src/calibre/ebooks/fb2/fb2ml.py +++ b/src/calibre/ebooks/fb2/fb2ml.py @@ -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'

%s

' % _('Table of Contents:') for item in self.oeb_book.toc: diff --git a/src/calibre/ebooks/fb2/output.py b/src/calibre/ebooks/fb2/output.py index d68fb4ddad..fff08a0d60 100644 --- a/src/calibre/ebooks/fb2/output.py +++ b/src/calibre/ebooks/fb2/output.py @@ -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.')), ])