Skip to content

Commit bb69564

Browse files
author
Peter El Hachem
committed
fix: remove unnecessary check for bbox extraction from lists
1 parent 8feb09f commit bb69564

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docling_core/types/doc/document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5776,7 +5776,7 @@ def _add_text(
57765776
enum_marker = str(enum_value) + "."
57775777

57785778
li_full_chunk = li_match.group(0)
5779-
li_bbox = extract_bounding_box(li_full_chunk) if image else None
5779+
li_bbox = extract_bounding_box(li_full_chunk)
57805780
text_content = extract_inner_text(li_full_chunk)
57815781
# Add list item
57825782
doc.add_list_item(

0 commit comments

Comments
 (0)