Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0071.py @ 1750:6fd0881fe1fc
tools, plugins XEP-0071, XEP-0277: remove recently added expandNewLinesToXHTML, just leave it to the convertors
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 15 Dec 2015 20:29:19 +0100 |
parents | cf11cfc87ef9 |
children | d17772b0fe22 |
comparison
equal
deleted
inserted
replaced
1749:d047535e3ed5 | 1750:6fd0881fe1fc |
---|---|
117 d = self.synt_plg.convert(rich, syntax, self.SYNTAX_XHTML_IM) | 117 d = self.synt_plg.convert(rich, syntax, self.SYNTAX_XHTML_IM) |
118 if xhtml: | 118 if xhtml: |
119 raise exceptions.DataError(_("Can't have xhtml and rich content at the same time")) | 119 raise exceptions.DataError(_("Can't have xhtml and rich content at the same time")) |
120 if xhtml: | 120 if xhtml: |
121 d = self.synt_plg.clean_xhtml(xhtml) | 121 d = self.synt_plg.clean_xhtml(xhtml) |
122 d.addCallback(xml_tools.expandNewLinesToXHTML) | |
123 d.addCallback(syntax_converted) | 122 d.addCallback(syntax_converted) |
124 return d | 123 return d |
125 | 124 |
126 def messageReceivedTrigger(self, message, post_treat, profile): | 125 def messageReceivedTrigger(self, message, post_treat, profile): |
127 """ Check presence of XHTML-IM in message | 126 """ Check presence of XHTML-IM in message |