summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2017-05-03 16:08:47 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2017-05-03 16:08:47 +0100
commit9dc23d422b3be1bf43980ffeee75ddc1c4902140 (patch)
tree331e4cac75db2188b2d85b48ed491edd4ff19869
parent7228c9cf6d78d855afab90c8ce95850dd2712c14 (diff)
downloadpoezio-9dc23d422b3be1bf43980ffeee75ddc1c4902140.tar.gz
poezio-9dc23d422b3be1bf43980ffeee75ddc1c4902140.tar.bz2
poezio-9dc23d422b3be1bf43980ffeee75ddc1c4902140.tar.xz
poezio-9dc23d422b3be1bf43980ffeee75ddc1c4902140.zip
Fix XHTML-IM, broken in the previous commit.
-rw-r--r--poezio/xhtml.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/xhtml.py b/poezio/xhtml.py
index 3d988806..9ddbb939 100644
--- a/poezio/xhtml.py
+++ b/poezio/xhtml.py
@@ -198,10 +198,10 @@ def get_body_from_message_stanza(message, use_xhtml=False,
if not use_xhtml:
return message['body']
xhtml = message.xml.find('{http://jabber.org/protocol/xhtml-im}html')
- if xhtml is not None:
+ if xhtml is None:
return message['body']
xhtml_body = xhtml.find('{http://www.w3.org/1999/xhtml}body')
- if xhtml_body is not None:
+ if xhtml_body is None:
return message['body']
content = xhtml_to_poezio_colors(xhtml_body, tmp_dir=tmp_dir,
extract_images=extract_images)