mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05:00
preserve newlines when pasting plain text
This commit is contained in:
parent
ed9110d530
commit
8cceb24857
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