mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-05 08:40:13 -04:00
RTF Input: Strip out false color specifications, as they cause artifacts when converted to MOBI
This commit is contained in:
parent
7396d7a69d
commit
b51079b26a
@ -177,7 +177,7 @@ class RTFInput(InputFormatPlugin):
|
|||||||
font_size_classes = ['span.fs%d { font-size: %spt }'%(i, x) for i, x in
|
font_size_classes = ['span.fs%d { font-size: %spt }'%(i, x) for i, x in
|
||||||
enumerate(ic.font_sizes)]
|
enumerate(ic.font_sizes)]
|
||||||
color_classes = ['span.col%d { color: %s }'%(i, x) for i, x in
|
color_classes = ['span.col%d { color: %s }'%(i, x) for i, x in
|
||||||
enumerate(ic.colors)]
|
enumerate(ic.colors) if x != 'false']
|
||||||
css = textwrap.dedent('''
|
css = textwrap.dedent('''
|
||||||
span.none {
|
span.none {
|
||||||
text-decoration: none; font-weight: normal;
|
text-decoration: none; font-weight: normal;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user