mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Make TOC for FB2 default to not included.
This commit is contained in:
parent
eab0d189b0
commit
12c99d6a9d
@ -118,7 +118,7 @@ class FB2MLizer(object):
|
|||||||
|
|
||||||
def get_toc(self):
|
def get_toc(self):
|
||||||
toc = u''
|
toc = u''
|
||||||
if not self.opts.no_inline_toc:
|
if self.opts.inline_toc:
|
||||||
self.log.debug('Generating table of contents...')
|
self.log.debug('Generating table of contents...')
|
||||||
toc += u'<p>%s</p>' % _('Table of Contents:')
|
toc += u'<p>%s</p>' % _('Table of Contents:')
|
||||||
for item in self.oeb_book.toc:
|
for item in self.oeb_book.toc:
|
||||||
|
@ -16,9 +16,9 @@ class FB2Output(OutputFormatPlugin):
|
|||||||
file_type = 'fb2'
|
file_type = 'fb2'
|
||||||
|
|
||||||
options = set([
|
options = set([
|
||||||
OptionRecommendation(name='no_inline_toc',
|
OptionRecommendation(name='inline_toc',
|
||||||
recommended_value=False, level=OptionRecommendation.LOW,
|
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.')),
|
'the book has its own table of contents.')),
|
||||||
])
|
])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user