mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
remove urllib.unquote() step in editor
Fixes bug #950. We need to keep an eye out for media filename problems, as this line is probably not necessary anymore with changes to the way Anki handles encoding but could potentially introduce issues.
This commit is contained in:
parent
92072f57cd
commit
23cec2d5e9
1 changed files with 0 additions and 3 deletions
|
@ -449,9 +449,6 @@ class Editor(object):
|
|||
txt = self.mungeHTML(txt)
|
||||
# misbehaving apps may include a null byte in the text
|
||||
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
|
||||
if not self.addMode:
|
||||
self.note.flush()
|
||||
|
|
Loading…
Reference in a new issue