Commit 3a24111e authored by eckhart's avatar eckhart

Merge remote-tracking branch 'origin/development' into development

parents a7c3bfda 3a896a3d
......@@ -375,7 +375,7 @@ class Node: # (collections.abc.Sized): Base class omitted for cython-compatibil
string content of the child-nodes is recursively read and then
concatenated.
"""
return ''.join(self._content())
return ''.join(self._content()) if self.children else str(self._result)
## unoptimized
# return "".join(child.content for child in self.children) if self.children \
# else str(self._result)
......
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