Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2020-04-15 21:27:40 +0300
committerPhilipp Hörist <philipp@hoerist.com>2020-04-15 21:27:40 +0300
commit857ab2bb5ee89d00e747ea892ba2d582a550894d (patch)
tree46b9a63ab375d5c2f686e5b5528a4a0cb5216424
parent1d792d6c0e19286cfb3fd70ac7d3ab4e2fd4eb98 (diff)
Revert "NodeBuilder: Don't add empty strings to cdata list"
This reverts commit 96961854ec58dff104eb67267424c6b7bc1ba2ba
-rw-r--r--nbxmpp/simplexml.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nbxmpp/simplexml.py b/nbxmpp/simplexml.py
index f8fa03f..67427b1 100644
--- a/nbxmpp/simplexml.py
+++ b/nbxmpp/simplexml.py
@@ -625,6 +625,8 @@ class NodeBuilder:
except ValueError as e:
self._document_attrs = None
raise ValueError(str(e))
+ if not self.last_is_data and self._ptr.parent:
+ self._ptr.parent.data.append('')
self.last_is_data = 0
def _check_stream_start(self, ns, tag):