From aab6fc59c8cb8add704c8c871200efdcaf03b8f1 Mon Sep 17 00:00:00 2001 From: domwhewell-sage <122788350+domwhewell-sage@users.noreply.github.com> Date: Sat, 2 Dec 2023 13:42:21 +0000 Subject: [PATCH] Removed the check for tbody --- ghostwriter/modules/reportwriter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ghostwriter/modules/reportwriter.py b/ghostwriter/modules/reportwriter.py index 66b90406e..5d68664e3 100644 --- a/ghostwriter/modules/reportwriter.py +++ b/ghostwriter/modules/reportwriter.py @@ -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)