preserve newlines when pasting plain text

This commit is contained in:
Damien Elmes 2018-01-26 19:18:24 +10:00
parent ed9110d530
commit 8cceb24857

View File

@ -851,6 +851,7 @@ class EditorWebView(AnkiWebView):
# normal text; convert it to HTML
txt = html.escape(txt)
txt = txt.replace("\n", "<br>")
return txt
def _processHtml(self, mime):