leave percent-escaped text from the editor alone

Originally added in d7339d9a27b8abd65fbcf85f809fb0089046986f;
unfortunately the change message does not describe why. Images
are handled separately, so it should theoretically not be required,
and keeping it in leads to garbled text when people include %
on their cards.

Latest report at https://anki.tenderapp.com/discussions/ankidesktop/38138-errors-in-conversion-of-latex-and-ea
This commit is contained in:
Damien Elmes 2020-01-19 16:29:46 +10:00
parent a9c93d933c
commit 5260e10f8f

View File

@ -345,7 +345,6 @@ class Editor:
if nid != self.note.id: if nid != self.note.id:
print("ignored late blur") print("ignored late blur")
return return
txt = urllib.parse.unquote(txt)
txt = unicodedata.normalize("NFC", txt) txt = unicodedata.normalize("NFC", txt)
txt = self.mungeHTML(txt) txt = self.mungeHTML(txt)
# misbehaving apps may include a null byte in the text # misbehaving apps may include a null byte in the text