RTF Input: Strip out false color specifications, as they cause artifacts when converted to MOBI

This commit is contained in:
Kovid Goyal 2012-02-07 10:07:06 +05:30
parent 7396d7a69d
commit b51079b26a

View File

@ -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;