From 6488eb582b052fb58bb7f644662d4e4919c1ed32 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 fb56c8a..34df9a2 100644 --- a/src/wireviz/Harness.py +++ b/src/wireviz/Harness.py @@ -253,6 +253,9 @@ class Harness: 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