From 92e2b4afd0bcf2a284c80048077ce5908a5fdcd8 Mon Sep 17 00:00:00 2001 From: ospalh Date: Tue, 15 May 2012 14:48:24 +0200 Subject: [PATCH] =?UTF-8?q?Strip=20=E2=80=9Crgb(0,=200,=200)=E2=80=9D=20fr?= =?UTF-8?q?om=20drag-and-dropped=20text.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aqt/editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/editor.py b/aqt/editor.py index 1906fb20c..8fab5b880 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -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