work around broken images when pasting/attaching on linux
This commit is contained in:
parent
2be34598fe
commit
cc73a3bb42
@ -865,6 +865,8 @@ to a cloze type first, via Edit>Change Note Type."""))
|
|||||||
pass
|
pass
|
||||||
# return a local html link
|
# return a local html link
|
||||||
ext = name.split(".")[-1].lower()
|
ext = name.split(".")[-1].lower()
|
||||||
|
if not isWin and not isMac:
|
||||||
|
name = urllib.quote(name.encode("utf8"))
|
||||||
if ext in pics:
|
if ext in pics:
|
||||||
return '<img src="%s">' % name
|
return '<img src="%s">' % name
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user