diff browser_side/panels.py @ 246:d7c41c84d062

browser side: use of inlineRoot to display XHTML chat text
author Goffi <goffi@goffi.org>
date Sat, 09 Nov 2013 10:24:03 +0100
parents a25aa882e09a
children c24715dcd2f6
line wrap: on
line diff
--- a/browser_side/panels.py	Sat Nov 09 10:23:33 2013 +0100
+++ b/browser_side/panels.py	Sat Nov 09 10:24:03 2013 +0100
@@ -43,7 +43,7 @@
 from radiocol import RadioColPanel
 from menu import Menu
 from jid import JID
-from tools import html_sanitize, addURLToText
+from tools import html_sanitize, addURLToText, inlineRoot
 from datetime import datetime
 from time import time
 import dialog
@@ -619,7 +619,7 @@
                            {"timestamp": _date.strftime("%H:%M"),
                             "nick": "[%s]" % html_sanitize(nick),
                             "msg_class": ' '.join(_msg_class),
-                            "msg": addURLToText(html_sanitize(msg)) if not xhtml else xhtml} #FIXME: images and external links must be removed according to preferences
+                            "msg": addURLToText(html_sanitize(msg)) if not xhtml else inlineRoot(xhtml)} #FIXME: images and external links must be removed according to preferences
                            )
         self.setStyleName('chatText')