diff src/tools/xml_tools.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 681fe91abcc0
children d17772b0fe22
line wrap: on
line diff
--- a/src/tools/xml_tools.py	Tue Dec 15 20:05:27 2015 +0100
+++ b/src/tools/xml_tools.py	Tue Dec 15 20:29:19 2015 +0100
@@ -1355,15 +1355,6 @@
         return self.result.firstChildElement()
 
 
-def expandNewLinesToXHTML(text):
-    """Replace two or more "\n" with "\n<br />\n".
-
-    @param text(unicode)
-    @return unicode
-    """
-    return re.sub(r"\n{2,}", "\n<br />\n", text)
-
-
 def decapsulateDomishContent(elt):
     """Return the inner content of a domish.Element.