From be14703e7f2bb1a28607eaf724d40ec7f429ce6a Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 2 Sep 2017 13:26:57 +1000 Subject: [PATCH] strip trailing
tag when saving field --- aqt/editor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aqt/editor.py b/aqt/editor.py index dbefc5f87..b14825079 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -259,8 +259,7 @@ class Editor: print("uncaught cmd", cmd) def mungeHTML(self, txt): - if txt == "
": - txt = "" + txt = re.sub(r"
$", "", txt) return txt # Setting/unsetting the current note