Commit 38b11bf1 authored by Evgeniy Popov's avatar Evgeniy Popov

ImagePlugin. Closes #24

parent 2486ce98
......@@ -128,8 +128,8 @@ class Base(object):
msg = 'HTML image'
extension = os.path.splitext(os.path.split(path_to_file)[1])[1] \
.lower()[1:]
xhtml = ' <img alt="img" src="data:image/%s;base64,%s"/>' % (
extension, img)
xhtml = '<body><br/> <img alt="img" src="data:image/%s;base64,%s"/> \
</body>' % (extension, img)
self.chat_control.send_message(message=msg, xhtml=xhtml)
self.chat_control.msg_textview.grab_focus()
......
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