mirror of
https://github.com/ankitects/anki.git
synced 2026-01-14 22:39:06 -05:00
preserve newlines when pasting plain text
This commit is contained in:
parent
1d0ce7c095
commit
3e9be0155e
1 changed files with 1 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue