wireviz / WireViz

Easily document cables and wiring harnesses.
GNU General Public License v3.0
4.33k stars 223 forks source link

Avoid Graphviz error when hiding all pins #375

Closed kvid closed 3 months ago

kvid commented 3 months ago

This bug was reported in #257 more than 2.5 years ago, but is still present in v0.4, and can be triggered by e.g. this YAML input:

connectors:
  X1:
    pincount: 2
    hide_disconnected_pins: true
connections:
 - - X1

Graphviz reports an error when the HTML table of pins is empty.

This minor change should fix #257