mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -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
|
||||
enumerate(ic.font_sizes)]
|
||||
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('''
|
||||
span.none {
|
||||
text-decoration: none; font-weight: normal;
|
||||
|
Loading…
x
Reference in New Issue
Block a user