mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Strip “rgb(0, 0, 0)” from drag-and-dropped text.
This commit is contained in:
parent
21d61be4c0
commit
92e2b4afd0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue