plugin XEP-0071: removed cleanXHTML use for sent message: it's not necessary in this direction
This commit is contained in:
parent
df30ea7a53
commit
9d9cc53b7d
1 changed files with 0 additions and 3 deletions
|
|
@ -22,7 +22,6 @@ from sat.core import exceptions
|
||||||
from sat.core.log import getLogger
|
from sat.core.log import getLogger
|
||||||
log = getLogger(__name__)
|
log = getLogger(__name__)
|
||||||
|
|
||||||
from sat.tools import xml_tools
|
|
||||||
from wokkel import disco, iwokkel
|
from wokkel import disco, iwokkel
|
||||||
from zope.interface import implements
|
from zope.interface import implements
|
||||||
# from lxml import etree
|
# from lxml import etree
|
||||||
|
|
@ -117,8 +116,6 @@ class XEP_0071(object):
|
||||||
d = self.synt_plg.convert(rich, syntax, self.SYNTAX_XHTML_IM)
|
d = self.synt_plg.convert(rich, syntax, self.SYNTAX_XHTML_IM)
|
||||||
if xhtml:
|
if xhtml:
|
||||||
raise exceptions.DataError(_("Can't have xhtml and rich content at the same time"))
|
raise exceptions.DataError(_("Can't have xhtml and rich content at the same time"))
|
||||||
if xhtml:
|
|
||||||
d = self.synt_plg.cleanXHTML(xhtml)
|
|
||||||
d.addCallback(syntax_converted)
|
d.addCallback(syntax_converted)
|
||||||
return d
|
return d
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue