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