Avoid Graphviz error when hiding all pins (#375)

Fixes #257
This commit is contained in:
KV 2024-06-05 17:59:41 +02:00
parent 668ba72975
commit 6488eb582b

View File

@ -253,6 +253,9 @@ class Harness:
pinhtml.append(" </table>")
if len(pinhtml) == 2: # Table start and end with no rows between?
pinhtml = ["<!-- all pins hidden -->"] # Avoid Graphviz error
html = [
row.replace("<!-- connector table -->", "\n".join(pinhtml))
for row in html