mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
Revert "remove urllib.unquote() step in editor"
This reverts commit 23cec2d5e9
.
without other changes, this causes double escaping when editing
This commit is contained in:
parent
dd2b6cb07d
commit
f8bf8afe4a
1 changed files with 3 additions and 0 deletions
|
@ -449,6 +449,9 @@ class Editor(object):
|
||||||
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
|
||||||
txt = txt.replace("\x00", "")
|
txt = txt.replace("\x00", "")
|
||||||
|
# reverse the url quoting we added to get images to display
|
||||||
|
txt = unicode(urllib2.unquote(
|
||||||
|
txt.encode("utf8")), "utf8", "replace")
|
||||||
self.note.fields[self.currentField] = txt
|
self.note.fields[self.currentField] = txt
|
||||||
if not self.addMode:
|
if not self.addMode:
|
||||||
self.note.flush()
|
self.note.flush()
|
||||||
|
|
Loading…
Reference in a new issue