Mercurial > libervia-backend
changeset 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 | b2d6f3c92842 |
files | src/plugins/plugin_xep_0277.py |
diffstat | 1 files changed, 0 insertions(+), 1 deletions(-) [+] |
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)