Commit b83c1135 authored by mathieui's avatar mathieui

Fix #3194 (don’t highlight on embedded XHTML image)

Remove the link, which wasn’t really useful anyway
parent 8495492c
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment