replacement order must be reversed

This commit is contained in:
Damien Elmes 2013-05-17 11:46:51 +09:00
parent faddc59232
commit c45525179b

View file

@ -1098,8 +1098,8 @@ class EditorWebView(AnkiWebView):
if ext not in pics and ext not in audio:
return
if url.lower().startswith("file://"):
url = url.replace("#", "%23")
url = url.replace("%", "%25")
url = url.replace("#", "%23")
# fetch it into a temporary folder
self.editor.mw.progress.start(
immediate=True, parent=self.editor.parentWindow)