mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-20 21:03:22 +02:00
Fix typo that was preventing LIT output from running
This commit is contained in:
parent
abb8d5adc1
commit
ca9d095672
1 changed files with 2 additions and 9 deletions
|
|
@ -7,8 +7,7 @@
|
|||
__docformat__ = 'restructuredtext en'
|
||||
|
||||
|
||||
from calibre.customize.conversion import OutputFormatPlugin, \
|
||||
OptionRecommendation
|
||||
from calibre.customize.conversion import OutputFormatPlugin
|
||||
|
||||
class LITOutput(OutputFormatPlugin):
|
||||
|
||||
|
|
@ -16,10 +15,6 @@ class LITOutput(OutputFormatPlugin):
|
|||
author = 'Marshall T. Vandegrift'
|
||||
file_type = 'lit'
|
||||
|
||||
recommendations = set([
|
||||
('dont_split_on_page_breaks', False, OptionRecommendation.HIGH),
|
||||
])
|
||||
|
||||
def convert(self, oeb, output_path, input_plugin, opts, log):
|
||||
self.log, self.opts, self.oeb = log, opts, oeb
|
||||
from calibre.ebooks.oeb.transforms.manglecase import CaseMangler
|
||||
|
|
@ -27,9 +22,7 @@ def convert(self, oeb, output_path, input_plugin, opts, log):
|
|||
from calibre.ebooks.oeb.transforms.htmltoc import HTMLTOCAdder
|
||||
from calibre.ebooks.lit.writer import LitWriter
|
||||
from calibre.ebooks.oeb.transforms.split import Split
|
||||
split = Split(not self.opts.dont_split_on_page_breaks,
|
||||
max_flow_size=0
|
||||
)
|
||||
split = Split(split_on_page_breaks=True, max_flow_size=0)
|
||||
split(self.oeb, self.opts)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue