diff options
author | mathieui <mathieui@mathieui.net> | 2012-02-07 21:47:40 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-02-07 21:47:40 +0100 |
commit | 93c17f8ece0681592aeacd2ac541ba7d2194ebf5 (patch) | |
tree | bb44b5bc1bd51f4dfec06c9197633f9924eca427 /src/xhtml.py | |
parent | e47c8d3c197264c1749ca300c09165e54a1acb5c (diff) | |
download | poezio-93c17f8ece0681592aeacd2ac541ba7d2194ebf5.tar.gz poezio-93c17f8ece0681592aeacd2ac541ba7d2194ebf5.tar.bz2 poezio-93c17f8ece0681592aeacd2ac541ba7d2194ebf5.tar.xz poezio-93c17f8ece0681592aeacd2ac541ba7d2194ebf5.zip |
Fixed #2328
Diffstat (limited to 'src/xhtml.py')
-rw-r--r-- | src/xhtml.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xhtml.py b/src/xhtml.py index 37da5f5d..cf7a5fc0 100644 --- a/src/xhtml.py +++ b/src/xhtml.py @@ -194,7 +194,9 @@ def get_body_from_message_stanza(message): if config.get('enable_xhtml_im', 'true') == 'true': xhtml_body = message['xhtml_im'] if xhtml_body: - return xhtml_to_poezio_colors(xhtml_body) + content = xhtml_to_poezio_colors(xhtml_body) + content = content if content else message['body'] + return content or " " return message['body'] def ncurses_color_to_html(color): |