From 20cfaef0af467562ec67d9bb3bd721780ec29018 Mon Sep 17 00:00:00 2001 From: KV Date: Wed, 5 Jun 2024 17:59:41 +0200 Subject: [PATCH] Avoid Graphviz error when hiding all pins (#375) Fixes #257 --- src/wireviz/Harness.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wireviz/Harness.py b/src/wireviz/Harness.py index 30468a6a..1ac45341 100644 --- a/src/wireviz/Harness.py +++ b/src/wireviz/Harness.py @@ -253,6 +253,9 @@ def create_graph(self) -> Graph: pinhtml.append(" ") + if len(pinhtml) == 2: # Table start and end with no rows between? + pinhtml = [""] # Avoid Graphviz error + html = [ row.replace("", "\n".join(pinhtml)) for row in html