The name of the initial branch for new projects is now "main" instead of "master". Existing projects remain unchanged. More information: https://doku.lrz.de/display/PUBLIC/GitLab

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

- slight adjustments

parent 05cb32cd
......@@ -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