# HG changeset patch # User souliane # Date 1449756863 -3600 # Node ID 56fa4e7e158c5a51d2c1d87f6b30119f3fd21b79 # Parent 3770d13776e8f2304ab355760d7231908e5fcc62 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
e.g. in messages from Movim diff -r 3770d13776e8 -r 56fa4e7e158c src/plugins/plugin_xep_0277.py --- 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)