From cc73a3bb4273948f8b9051ac40ffe3df0f493aca Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 24 May 2013 10:50:15 +0900 Subject: [PATCH] work around broken images when pasting/attaching on linux --- aqt/editor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aqt/editor.py b/aqt/editor.py index f4be40a03..1574abd68 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -865,6 +865,8 @@ 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")) if ext in pics: return '' % name else: