Strip “rgb(0, 0, 0)” from drag-and-dropped text.

This commit is contained in:
ospalh 2012-05-15 14:48:24 +02:00
parent 21d61be4c0
commit 92e2b4afd0

View file

@ -275,7 +275,7 @@ def _filterHTML(html):
k, v = item.split(":") k, v = item.split(":")
except ValueError: except ValueError:
continue continue
if k.strip() == "color": if k.strip() == "color" and not v.strip() == "rgb(0, 0, 0)":
preserve += "color:%s;" % v preserve += "color:%s;" % v
if preserve: if preserve:
# preserve colour attribute, delete implicit class # preserve colour attribute, delete implicit class