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)