summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poezio/xhtml.py4
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: