Commit acc52924 authored by di68kap's avatar di68kap
Browse files

- DHParser/ doc-strings adjusted, TODO added

parent 15ad2819
......@@ -410,9 +410,9 @@ class Node(
def content(self) -> str:
Returns content as string, inserting error messages where
errors occurred.
Returns content as string, omitting error messages.
# TODO: Optimize with caching and StringViews
if self.children:
return "".join(child.content for child in self.children)
return cast(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