diff options
author | mathieui <mathieui@mathieui.net> | 2016-08-26 22:44:07 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2016-08-26 22:44:07 +0200 |
commit | b83c113575df1fccfb1feac22d600f8d5df9808a (patch) | |
tree | dbf580e952aa1805a326151c29840752a43f1d7a | |
parent | 8495492c755792ddde1e9c41d363de794be153e6 (diff) | |
download | poezio-b83c113575df1fccfb1feac22d600f8d5df9808a.tar.gz poezio-b83c113575df1fccfb1feac22d600f8d5df9808a.tar.bz2 poezio-b83c113575df1fccfb1feac22d600f8d5df9808a.tar.xz poezio-b83c113575df1fccfb1feac22d600f8d5df9808a.zip |
Fix #3194 (don’t highlight on embedded XHTML image)
Remove the link, which wasn’t really useful anyway
-rw-r--r-- | poezio/xhtml.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/xhtml.py b/poezio/xhtml.py index 52fbc773..0b774494 100644 --- a/poezio/xhtml.py +++ b/poezio/xhtml.py @@ -353,11 +353,11 @@ class XHTMLHandler(sax.ContentHandler): try: with open(filepath, 'wb') as fd: fd.write(bin_data) - builder.append('file://%s' % filepath) + builder.append('[file stored as %s]' % filename) except Exception as e: builder.append('[Error while saving image: %s]' % e) else: - builder.append('file://%s' % filepath) + builder.append('[file stored as %s]' % filename) else: builder.append(trim(attrs['src'])) if 'alt' in attrs: |