diff --git a/aqt/editor.py b/aqt/editor.py index a97c31511..372ded35b 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -851,6 +851,7 @@ class EditorWebView(AnkiWebView): # normal text; convert it to HTML txt = html.escape(txt) + txt = txt.replace("\n", "
") return txt def _processHtml(self, mime):