mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
remove dropbox image escape hack
This commit is contained in:
parent
ff8b58de21
commit
9714143af9
1 changed files with 0 additions and 7 deletions
|
@ -166,13 +166,6 @@ If the same name exists, compare checksums."""
|
||||||
return txt
|
return txt
|
||||||
|
|
||||||
def escapeImages(self, string):
|
def escapeImages(self, string):
|
||||||
# Feeding webkit unicode can result in it not finding images, so on
|
|
||||||
# linux/osx we percent escape the image paths as utf8. On Windows the
|
|
||||||
# problem is more complicated - if we percent-escape as utf8 it fixes
|
|
||||||
# some images but breaks others. When filenames are normalized by
|
|
||||||
# dropbox they become unreadable if we escape them.
|
|
||||||
if isWin:
|
|
||||||
return string
|
|
||||||
def repl(match):
|
def repl(match):
|
||||||
tag = match.group(0)
|
tag = match.group(0)
|
||||||
fname = match.group("fname")
|
fname = match.group("fname")
|
||||||
|
|
Loading…
Reference in a new issue