mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Conversion pipeline: Fix --linearize-tables option not removing all table related style information
This commit is contained in:
parent
0c3e0bc821
commit
b9abaebc52
@ -804,6 +804,11 @@ OptionRecommendation(name='language',
|
|||||||
if line_height < 1e-4:
|
if line_height < 1e-4:
|
||||||
line_height = None
|
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,
|
flattener = CSSFlattener(fbase=fbase, fkey=fkey,
|
||||||
lineh=line_height,
|
lineh=line_height,
|
||||||
untable=self.output_plugin.file_type in ('mobi','lit'),
|
untable=self.output_plugin.file_type in ('mobi','lit'),
|
||||||
@ -812,10 +817,6 @@ OptionRecommendation(name='language',
|
|||||||
self.opts.insert_blank_line = oibl
|
self.opts.insert_blank_line = oibl
|
||||||
self.opts.remove_paragraph_spacing = orps
|
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)
|
pr(0.9)
|
||||||
self.flush()
|
self.flush()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user