diff src/plugins/plugin_xep_0277.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 cc31dd72526d
children 30efe084471c
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0277.py	Tue Dec 15 20:05:27 2015 +0100
+++ b/src/plugins/plugin_xep_0277.py	Tue Dec 15 20:29:19 2015 +0100
@@ -372,7 +372,6 @@
                                 raise failure.Failure(exceptions.DataError(_("Can't have xhtml and rich content at the same time")))
                         else:  # clean the XHTML input
                             converted = yield synt.clean_xhtml(data[attr])
-                        converted = xml_tools.expandNewLinesToXHTML(converted)
 
                         xml_content = u'<div xmlns="{ns}">{converted}</div>'.format(
                                         ns=NS_XHTML,