comparison 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
comparison
equal deleted inserted replaced
1733:3770d13776e8 1734:56fa4e7e158c
182 # This is needed to avoid a successive encapsulation with a new <div>...</div> 182 # This is needed to avoid a successive encapsulation with a new <div>...</div>
183 # each time the item is modified (encapsulation is done in self.data2entry). 183 # each time the item is modified (encapsulation is done in self.data2entry).
184 data = xml_tools.decapsulateDomishContent(data_elt) 184 data = xml_tools.decapsulateDomishContent(data_elt)
185 185
186 microblog_data[key] = yield self.host.plugins["TEXT-SYNTAXES"].clean_xhtml(data) 186 microblog_data[key] = yield self.host.plugins["TEXT-SYNTAXES"].clean_xhtml(data)
187 microblog_data[key] = xml_tools.expandNewLinesToXHTML(microblog_data[key])
188 else: 187 else:
189 key = check_conflict(elem.name) 188 key = check_conflict(elem.name)
190 microblog_data[key] = unicode(elem) 189 microblog_data[key] = unicode(elem)
191 190
192 191