Commit 3a896a3d authored by Eckhart Arnold's avatar Eckhart Arnold
Browse files

- slight adjustments

parent 05cb32cd
......@@ -375,7 +375,7 @@ class Node: # ( Base class omitted for cython-compatibil
string content of the child-nodes is recursively read and then
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)
Supports Markdown
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