From 52b92bc96785af66b263e59480ec658b213df326 Mon Sep 17 00:00:00 2001 From: Jake Probst Date: Sun, 11 Mar 2012 05:48:57 -0700 Subject: [PATCH] fixed webkit adding html into cards --- aqt/editor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aqt/editor.py b/aqt/editor.py index 3ffa64bec..f9a929ff8 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -397,6 +397,9 @@ class Editor(object): def mungeHTML(self, txt): if txt == "
": txt = "" + fa = re.findall('((.*))', txt) + if fa: + txt = txt.replace(fa[0][0], fa[0][1]) return txt # Setting/unsetting the current note