From 61aa8aea3d7197829fbe7a0c7ee24a3536700fc2 Mon Sep 17 00:00:00 2001 From: jce <28319872+JasperCraeghs@users.noreply.github.com> Date: Mon, 18 Mar 2024 15:15:22 +0100 Subject: [PATCH] Code cleanup --- mlx/traceability/directives/item_pie_chart_directive.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mlx/traceability/directives/item_pie_chart_directive.py b/mlx/traceability/directives/item_pie_chart_directive.py index e4a71a37..20311a87 100644 --- a/mlx/traceability/directives/item_pie_chart_directive.py +++ b/mlx/traceability/directives/item_pie_chart_directive.py @@ -105,7 +105,6 @@ def perform_replacement(self, app, collection): table = nodes.table() if self.get('classes'): table.get('classes').extend(self.get('classes')) - # Column and heading setup titles = [nodes.paragraph('', title) for title in self['id_set']] headings = [nodes.entry('', title) for title in titles] @@ -114,6 +113,7 @@ def perform_replacement(self, app, collection): tgroup += [nodes.colspec(colwidth=5) for _ in range(number_of_columns)] tgroup += nodes.thead('', nodes.row('', *headings)) table += tgroup + # Table body tbody = nodes.tbody() tgroup += tbody for label in self['matrix']: @@ -135,13 +135,11 @@ def perform_replacement(self, app, collection): tbody += row_without_targets row_without_targets = nodes.row() else: - source_row += nodes.entry('') # TODO: remove? + source_row += nodes.entry('') if self.nested_target_regex.pattern: source_row += nodes.entry('') tbody += source_row - top_node += table - self.replace_self(top_node) def _relationships_to_labels(self, relationships):