You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug] Using HTML color code changes wire thickness #494
I've found that if I only use the color abbreviations the diagram looks one way. If I add a single quoted html color code, the wire thickness across the entire diagram changes, as well as other minor visual changes
The intention is to increase the wire thickness of single colored wires to match any existing double or triple colored wires in the diagram. However, the code line linked above is currently only able to handle colors specified as 2 letter codes. It needs an update!
I''m not able to test it right now, but the code len(colorstr) > 2 probably should be replaced by len(get_color_hex(colorstr)) > 1 to also handle other ways to specify a color.
@esromneb - please try my PR #495 that should fix this bug you reported. Feel free to review or otherwise comment that PR too. Edit: Others that might read this are of course also welcome.
Activity
kvid commentedon Apr 19, 2026
@esromneb - thank you for reporting this bug. I have verified it, and found the root cause at https://github.com/wireviz/WireViz/blob/master/src/wireviz/Harness.py#L292
The intention is to increase the wire thickness of single colored wires to match any existing double or triple colored wires in the diagram. However, the code line linked above is currently only able to handle colors specified as 2 letter codes. It needs an update!
kvid commentedon Apr 19, 2026
I''m not able to test it right now, but the code
len(colorstr) > 2probably should be replaced bylen(get_color_hex(colorstr)) > 1to also handle other ways to specify a color.kvid commentedon Apr 20, 2026
@esromneb - please try my PR #495 that should fix this bug you reported. Feel free to review or otherwise comment that PR too.
Edit: Others that might read this are of course also welcome.
Handle different color specifiers