Skip to content

Commit

Permalink
Avoid Graphviz error when hiding all pins
Browse files Browse the repository at this point in the history
Fixes #257
  • Loading branch information
kvid committed Jun 5, 2024
1 parent bf6da10 commit ea1f6ea
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 ea1f6ea

Please sign in to comment.