From 5260e10f8f07422f9cb6c81e43c1baf57a7d4ff1 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 19 Jan 2020 16:29:46 +1000 Subject: [PATCH] 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 --- qt/aqt/editor.py | 1 - 1 file changed, 1 deletion(-) diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index 37fcd67bb..f27fed0d5 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -345,7 +345,6 @@ class Editor: if nid != self.note.id: print("ignored late blur") return - txt = urllib.parse.unquote(txt) txt = unicodedata.normalize("NFC", txt) txt = self.mungeHTML(txt) # misbehaving apps may include a null byte in the text