tools, plugins XEP-0071, XEP-0277: remove recently added expandNewLinesToXHTML, just leave it to the convertors

This commit is contained in:
souliane 2015-12-15 20:29:19 +01:00
commit 3cc6e41ad6

View file

@ -1355,15 +1355,6 @@ class ElementParser(object):
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.