diff --git a/marker/schema/groups/page.py b/marker/schema/groups/page.py index c00af1f5..6c5d9983 100644 --- a/marker/schema/groups/page.py +++ b/marker/schema/groups/page.py @@ -84,6 +84,8 @@ def assemble_html(self, child_blocks, parent_structure=None): def compute_line_block_intersections(self, provider_outputs: List[ProviderOutput]): max_intersections = {} + if not self.children: + return max_intersections blocks = [ block for block in self.children