diff options
author | lovetox <philipp@hoerist.com> | 2020-03-15 11:51:01 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2020-03-15 11:51:01 +0300 |
commit | 96961854ec58dff104eb67267424c6b7bc1ba2ba (patch) | |
tree | f727d828b608dc897a2429c7174877ac762bded8 | |
parent | 546d83b85b4c2f7fae378f0807d0fd7577c4ae65 (diff) |
NodeBuilder: Don't add empty strings to cdata list
It seems to serv no purpose and messes up the pretty printing
-rw-r--r-- | nbxmpp/simplexml.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/nbxmpp/simplexml.py b/nbxmpp/simplexml.py index 67427b1..f8fa03f 100644 --- a/nbxmpp/simplexml.py +++ b/nbxmpp/simplexml.py @@ -625,8 +625,6 @@ 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): |