From c45525179b3754ba346048a03c9d7b43037a0c2b Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 17 May 2013 11:46:51 +0900 Subject: [PATCH] replacement order must be reversed --- aqt/editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/editor.py b/aqt/editor.py index 64388686d..b9e3feb6f 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -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)