diff src/plugins/plugin_xep_0277.py @ 1734:56fa4e7e158c

plugin XEP-0277: revert use of expandNewLinesToXHTML for incoming messages: - this was here for retro-compatibility with messages previously posted from Libervia - but this is not appropriate and will add some extra <br /> e.g. in messages from Movim
author souliane <souliane@mailoo.org>
date Thu, 10 Dec 2015 15:14:23 +0100
parents 3770d13776e8
children cc31dd72526d
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0277.py	Thu Dec 10 14:21:51 2015 +0100
+++ b/src/plugins/plugin_xep_0277.py	Thu Dec 10 15:14:23 2015 +0100
@@ -184,7 +184,6 @@
                 data = xml_tools.decapsulateDomishContent(data_elt)
 
                 microblog_data[key] = yield self.host.plugins["TEXT-SYNTAXES"].clean_xhtml(data)
-                microblog_data[key] = xml_tools.expandNewLinesToXHTML(microblog_data[key])
             else:
                 key = check_conflict(elem.name)
                 microblog_data[key] = unicode(elem)