From 9714143af9206bd521515a3fc4b6641619113257 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 29 May 2013 09:34:12 +0900 Subject: [PATCH] remove dropbox image escape hack --- anki/media.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/anki/media.py b/anki/media.py index ab08df10d..1b1adc114 100644 --- a/anki/media.py +++ b/anki/media.py @@ -166,13 +166,6 @@ If the same name exists, compare checksums.""" return txt 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): tag = match.group(0) fname = match.group("fname")