Skip to content

Commit

Permalink
Removed the check for tbody
Browse files Browse the repository at this point in the history
  • Loading branch information
domwhewell-sage committed Dec 2, 2023
1 parent 1fa4f0d commit aab6fc5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ghostwriter/modules/reportwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1488,10 +1488,10 @@ def _process_text_xml(self, text, finding=None, p_style=None):

# TABLE - Table
elif tag_name == "table":
for content in tag.contents:
if content.name == "tbody":
for part in tag.contents:
if part.name is not None:
# Get the tag's contents to check for additional formatting
tbody = content
tbody = part

# Measure the height and width of the table
rows, cols = self._get_table_dimensions(tbody)
Expand Down

0 comments on commit aab6fc5

Please sign in to comment.