mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-04 21:06:32 +01:00
Conversion pipeline: Fix --linearize-tables option not removing all table related style information
This commit is contained in:
parent
0c3e0bc821
commit
b9abaebc52
1 changed files with 5 additions and 4 deletions
|
|
@ -804,6 +804,11 @@ def run(self):
|
|||
if line_height < 1e-4:
|
||||
line_height = None
|
||||
|
||||
if self.opts.linearize_tables and \
|
||||
self.output_plugin.file_type not in ('mobi', 'lrf'):
|
||||
from calibre.ebooks.oeb.transforms.linearize_tables import LinearizeTables
|
||||
LinearizeTables()(self.oeb, self.opts)
|
||||
|
||||
flattener = CSSFlattener(fbase=fbase, fkey=fkey,
|
||||
lineh=line_height,
|
||||
untable=self.output_plugin.file_type in ('mobi','lit'),
|
||||
|
|
@ -812,10 +817,6 @@ def run(self):
|
|||
self.opts.insert_blank_line = oibl
|
||||
self.opts.remove_paragraph_spacing = orps
|
||||
|
||||
if self.opts.linearize_tables and \
|
||||
self.output_plugin.file_type not in ('mobi', 'lrf'):
|
||||
from calibre.ebooks.oeb.transforms.linearize_tables import LinearizeTables
|
||||
LinearizeTables()(self.oeb, self.opts)
|
||||
pr(0.9)
|
||||
self.flush()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue