Skip to content

Commit

Permalink
fixed html ingestor break due to new bbox code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ambika Sukla committed Jan 26, 2024
1 parent e4789a4 commit 0fb90ee
Show file tree
Hide file tree
Showing 2 changed files with 382 additions and 1,447 deletions.
8 changes: 4 additions & 4 deletions nlm_ingestor/ingestor/visual_ingestor/block_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def render_json(self):
block["box_style"][0],
block["box_style"][1] + block["box_style"][3],
block["box_style"][0] + block["box_style"][4],
]
] if "box_style" in block else []
}
elif block_type == "list_item" and not is_rendering_table:
block_dict = self.render_nested_block_as_dict(block, "list_item")
Expand All @@ -277,7 +277,7 @@ def render_json(self):
block["box_style"][0],
block["box_style"][1] + block["box_style"][3],
block["box_style"][0] + block["box_style"][4],
]
] if "box_style" in block else []
}

if block_dict:
Expand Down Expand Up @@ -348,7 +348,7 @@ def render_json(self):
table_block["top"],
table_block["left"] + block["box_style"][3],
table_block["top"] + block["box_style"][4],
]
] if "box_style" in block else []
table_rows = []

return render_dict
Expand All @@ -373,7 +373,7 @@ def render_nested_block_as_dict(self, block, tag):
block["box_style"][0],
block["box_style"][1] + block["box_style"][3],
block["box_style"][0] + block["box_style"][4],
]
] if "box_style" in block else [],
}
return block_dict

Loading

0 comments on commit 0fb90ee

Please sign in to comment.