From bf295541213e78c47987f4d774c102e7f1de1008 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sat, 1 Sep 2012 08:29:33 +0200 Subject: Add a element on /xhtml command Because not having that element is not allowed by the xhtml-im XEP, poezio should put that by default. --- src/tabs.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/tabs.py b/src/tabs.py index 9291654f..e3d2de36 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -437,6 +437,8 @@ class ChatTab(Tab): return try: body = xhtml.clean_text(xhtml.xhtml_to_poezio_colors(arg)) + # The element is the only allowable child of the + arg = "%s" % (arg,) ET.fromstring(arg) except: self.core.information('Could not send custom xhtml', 'Error') -- cgit v1.2.3