Commit 96961854 authored by Philipp Hörist's avatar Philipp Hörist

NodeBuilder: Don't add empty strings to cdata list

It seems to serv no purpose and messes up the pretty printing
parent 546d83b8
Pipeline #5097 passed with stages
in 51 seconds
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment