Skip to content

Commit 47e4d68

Browse files
committed
fix(layout_annotation.py): remove head margin when generating bounding box
1 parent 78788bb commit 47e4d68

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

vrdu/layout_annotation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def generate_non_figure_bb(self) -> Dict[int, List[Block]]:
304304

305305
# We do not consider the cross column case for these envs.
306306
if category in envs.one_column_envs:
307-
bboxes = [bb for bb in bounding_boxes if bb[0] >= top_margin]
307+
bboxes = [bb for bb in bounding_boxes]
308308
if len(bboxes) == 0:
309309
continue
310310
element = Block(
@@ -326,7 +326,6 @@ def generate_non_figure_bb(self) -> Dict[int, List[Block]]:
326326
for bb in bounding_boxes
327327
if bb[1] >= separations[column]
328328
and bb[1] <= separations[column + 1]
329-
and bb[0] >= top_margin
330329
]
331330
if not column_boxes:
332331
continue

0 commit comments

Comments
 (0)