diff --git a/anki/media.py b/anki/media.py index 716da58ff..d5e6a34e3 100644 --- a/anki/media.py +++ b/anki/media.py @@ -22,9 +22,9 @@ class MediaManager(object): soundRegexps = ["(?i)(\[sound:(?P[^]]+)\])"] imgRegexps = [ # src element quoted case - "(?i)(]+src=(?P[\"'])(?P[^>]+?)(?P=str)[^>]*>)", + "(?i)(]+ src=(?P[\"'])(?P[^>]+?)(?P=str)[^>]*>)", # unquoted case - "(?i)(]+src=(?!['\"])(?P[^ >]+)[^>]*?>)", + "(?i)(]+ src=(?!['\"])(?P[^ >]+)[^>]*?>)", ] regexps = soundRegexps + imgRegexps diff --git a/aqt/editor.py b/aqt/editor.py index 56fd724e9..e347d6d7e 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -1092,11 +1092,11 @@ class EditorWebView(AnkiWebView): self.savedClip = n def _processMime(self, mime): - print "html=%s image=%s urls=%s txt=%s" % ( - mime.hasHtml(), mime.hasImage(), mime.hasUrls(), mime.hasText()) - print "html", mime.html() - print "urls", mime.urls() - print "text", mime.text() + # print "html=%s image=%s urls=%s txt=%s" % ( + # mime.hasHtml(), mime.hasImage(), mime.hasUrls(), mime.hasText()) + # print "html", mime.html() + # print "urls", mime.urls() + # print "text", mime.text() if mime.hasHtml(): return self._processHtml(mime) elif mime.hasUrls():