mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix typo that was preventing LIT output from running
This commit is contained in:
parent
abb8d5adc1
commit
ca9d095672
@ -7,8 +7,7 @@ __copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>'
|
|||||||
__docformat__ = 'restructuredtext en'
|
__docformat__ = 'restructuredtext en'
|
||||||
|
|
||||||
|
|
||||||
from calibre.customize.conversion import OutputFormatPlugin, \
|
from calibre.customize.conversion import OutputFormatPlugin
|
||||||
OptionRecommendation
|
|
||||||
|
|
||||||
class LITOutput(OutputFormatPlugin):
|
class LITOutput(OutputFormatPlugin):
|
||||||
|
|
||||||
@ -16,10 +15,6 @@ class LITOutput(OutputFormatPlugin):
|
|||||||
author = 'Marshall T. Vandegrift'
|
author = 'Marshall T. Vandegrift'
|
||||||
file_type = 'lit'
|
file_type = 'lit'
|
||||||
|
|
||||||
recommendations = set([
|
|
||||||
('dont_split_on_page_breaks', False, OptionRecommendation.HIGH),
|
|
||||||
])
|
|
||||||
|
|
||||||
def convert(self, oeb, output_path, input_plugin, opts, log):
|
def convert(self, oeb, output_path, input_plugin, opts, log):
|
||||||
self.log, self.opts, self.oeb = log, opts, oeb
|
self.log, self.opts, self.oeb = log, opts, oeb
|
||||||
from calibre.ebooks.oeb.transforms.manglecase import CaseMangler
|
from calibre.ebooks.oeb.transforms.manglecase import CaseMangler
|
||||||
@ -27,9 +22,7 @@ class LITOutput(OutputFormatPlugin):
|
|||||||
from calibre.ebooks.oeb.transforms.htmltoc import HTMLTOCAdder
|
from calibre.ebooks.oeb.transforms.htmltoc import HTMLTOCAdder
|
||||||
from calibre.ebooks.lit.writer import LitWriter
|
from calibre.ebooks.lit.writer import LitWriter
|
||||||
from calibre.ebooks.oeb.transforms.split import Split
|
from calibre.ebooks.oeb.transforms.split import Split
|
||||||
split = Split(not self.opts.dont_split_on_page_breaks,
|
split = Split(split_on_page_breaks=True, max_flow_size=0)
|
||||||
max_flow_size=0
|
|
||||||
)
|
|
||||||
split(self.oeb, self.opts)
|
split(self.oeb, self.opts)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user