diff src/plugins/plugin_xep_0277.py @ 1791:1359ad0b37c2

reverted patch 3770d13776e8
author Goffi <goffi@goffi.org>
date Wed, 13 Jan 2016 13:11:20 +0100
parents 1fa50da8bfbe
children fed95a6c56f8
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0277.py	Wed Jan 13 13:08:31 2016 +0100
+++ b/src/plugins/plugin_xep_0277.py	Wed Jan 13 13:11:20 2016 +0100
@@ -176,11 +176,7 @@
                 if data_elt.uri != NS_XHTML:
                     raise failure.Failure(exceptions.DataError(_('Content of type XHTML must declare its namespace!')))
                 key = check_conflict(u'{}_xhtml'.format(elem.name))
-
-                # This is needed to avoid a successive encapsulation with a new <div>...</div>
-                # each time the item is modified (encapsulation is done in self.data2entry).
-                data = xml_tools.decapsulateDomishContent(data_elt)
-
+                data = data_elt.toXml()
                 microblog_data[key] = yield self.host.plugins["TEXT-SYNTAXES"].clean_xhtml(data)
             else:
                 key = check_conflict(elem.name)