From 9c24c41b906f72957e6e1d00590c6e084788ef8e Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 27 May 2013 11:26:02 +0900 Subject: [PATCH] we do need to quote when adding media contrary to commit 3576475, we do need to quote when adding media on windows as well, as it seems webkit can not handle all representations variants when passed unicode as we're stripping # and % when adding characters, hopefully that's the last of it! --- aqt/editor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aqt/editor.py b/aqt/editor.py index c2842f7c6..4df8374bb 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -866,8 +866,7 @@ to a cloze type first, via Edit>Change Note Type.""")) pass # return a local html link ext = name.split(".")[-1].lower() - if not isWin and not isMac: - name = urllib.quote(name.encode("utf8")) + name = urllib.quote(name.encode("utf8")) if ext in pics: return '' % name else: