From 1d7974d5a1b19704f53a3714276a8a98c49876a0 Mon Sep 17 00:00:00 2001 From: Robin Sonnabend <robin@fsmpi.rwth-aachen.de> Date: Fri, 7 Jul 2017 21:06:46 +0200 Subject: [PATCH] Collect children of Content as elements as well --- parser.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/parser.py b/parser.py index f11faa6..18ef97a 100644 --- a/parser.py +++ b/parser.py @@ -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 -- GitLab