mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
622306be96
commit
cdbf10ffab
@ -148,7 +148,6 @@ class MOBIOutput(OutputFormatPlugin):
|
|||||||
self.oeb.manifest.remove(self.oeb.manifest.hrefs[x.href])
|
self.oeb.manifest.remove(self.oeb.manifest.hrefs[x.href])
|
||||||
x.href = articles_[0].href
|
x.href = articles_[0].href
|
||||||
|
|
||||||
|
|
||||||
for sec in sections:
|
for sec in sections:
|
||||||
articles[id(sec)] = []
|
articles[id(sec)] = []
|
||||||
for a in list(sec):
|
for a in list(sec):
|
||||||
@ -188,12 +187,10 @@ class MOBIOutput(OutputFormatPlugin):
|
|||||||
self.check_for_periodical()
|
self.check_for_periodical()
|
||||||
|
|
||||||
if create_kf8:
|
if create_kf8:
|
||||||
# Split on pagebreaks so that the resulting KF8 works better with
|
# Split on pagebreaks so that the resulting KF8 is faster to load
|
||||||
# calibre's viewer, which does not support CSS page breaks
|
|
||||||
from calibre.ebooks.oeb.transforms.split import Split
|
from calibre.ebooks.oeb.transforms.split import Split
|
||||||
Split()(self.oeb, self.opts)
|
Split()(self.oeb, self.opts)
|
||||||
|
|
||||||
|
|
||||||
kf8 = self.create_kf8(resources, for_joint=mobi_type=='both'
|
kf8 = self.create_kf8(resources, for_joint=mobi_type=='both'
|
||||||
) if create_kf8 else None
|
) if create_kf8 else None
|
||||||
if mobi_type == 'new':
|
if mobi_type == 'new':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user