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:
Damien Elmes 2014-08-01 09:37:23 +09:00
parent dd2b6cb07d
commit f8bf8afe4a

View file

@ -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()