From 4b6f791bdcc6ac817d25c90c1a32684bb13c873e Mon Sep 17 00:00:00 2001 From: Daniel Rojas Date: Mon, 15 Nov 2021 18:09:32 +0100 Subject: [PATCH] Add TODO for empty connector pin tables --- src/wireviz/wv_graphviz.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wireviz/wv_graphviz.py b/src/wireviz/wv_graphviz.py index efa82a1..bd5683e 100644 --- a/src/wireviz/wv_graphviz.py +++ b/src/wireviz/wv_graphviz.py @@ -215,6 +215,9 @@ def gv_pin_table(component) -> Table: for pin in component.pin_objects.values(): if component.should_show_pin(pin.id): pin_rows.append(gv_pin_row(pin, component)) + if len(pin_rows) == 0: + # TODO: write test for empty pin tables, and for unconnected connectors that hide disconnected pins + pass tbl = Table(pin_rows, border=0, cellborder=1, cellpadding=3, cellspacing=0) return tbl