diff --git a/aqt/editor.py b/aqt/editor.py index 87012eab0..aa8c28f86 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -289,7 +289,8 @@ class Editor: print("uncaught cmd", cmd) def mungeHTML(self, txt): - txt = re.sub(r"
$", "", txt) + if txt in ('
', '

'): + return '' return txt # Setting/unsetting the current note