Skip to content

Commit

Permalink
Hide pin color string + box if color is unknown
Browse files Browse the repository at this point in the history
Removes requirement of using `__` to show pins without color. Any non-color string can be used: `-`, `--`, `__`, `X`, `""` are some options.
  • Loading branch information
formatc1702 committed Oct 21, 2020
1 parent 1182463 commit 8166a63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wireviz/Harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def create_graph(self) -> Graph:
f'<td>{pinlabel}</td>' if pinlabel else None])

if connector.pincolors:
if not connector.pincolors[counter] == "__":
if connector.pincolors[counter] in wv_colors._color_hex.keys():
# the cell with the pincolor string and
# the cell with the color box
# need to be separate, since GraphViz
Expand Down

0 comments on commit 8166a63

Please sign in to comment.