From b83c113575df1fccfb1feac22d600f8d5df9808a Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 26 Aug 2016 22:44:07 +0200 Subject: =?UTF-8?q?Fix=20#3194=20(don=E2=80=99t=20highlight=20on=20embedde?= =?UTF-8?q?d=20XHTML=20image)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove the link, which wasn’t really useful anyway --- poezio/xhtml.py | 4 ++-- 1 file 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: -- cgit v1.2.3