Merge pull request #16 from ospalh/strip-black

Strip “rgb(0, 0, 0)” from drag-and-dropped text.
This commit is contained in:
Damien Elmes 2012-05-15 10:49:48 -07:00
commit 7584bfe900

View file

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