Commit 1d7974d5 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Collect children of Content as elements as well

parent 7fdc3464
......@@ -511,7 +511,9 @@ class Fork(Element):
if show_private or not self.test_private(self.name):
for child in self.children:
elements.add(child)
if isinstance(child, Fork):
if isinstance(child, Content):
elements.update(child.children)
elif isinstance(child, Fork):
child.get_visible_elements(show_private, elements)
return elements
......
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