Skip to content

Commit

Permalink
Avoid Graphviz error when hiding all pins (#375)
Browse files Browse the repository at this point in the history
Fixes #257
  • Loading branch information
kvid committed Jun 7, 2024
1 parent 954c4f5 commit 20cfaef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wireviz/Harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@ def create_graph(self) -> Graph:

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
Expand Down

0 comments on commit 20cfaef

Please sign in to comment.