From 152f97cc7bfd223f6725ad0657042130fa8b59d9 Mon Sep 17 00:00:00 2001 From: Daniel Rojas Date: Sat, 1 Mar 2025 19:12:35 +0100 Subject: [PATCH] Add non-empty label to avoid over-sized loops (#381) Work-around to improve the #286 use case. - https://github.com/wireviz/WireViz/issues/286#issuecomment-2094309143 - https://stackoverflow.com/questions/70996779/graphviz-edges-between-cells-in-the-same-html-table-are-too-long Co-authored-by: kvid --- src/wireviz/wv_harness.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wireviz/wv_harness.py b/src/wireviz/wv_harness.py index ba388e5..b81f24d 100644 --- a/src/wireviz/wv_harness.py +++ b/src/wireviz/wv_harness.py @@ -323,7 +323,8 @@ class Harness: dot.attr("edge", color="#000000") loops = gv_connector_loops(connector) for head, tail in loops: - dot.edge(head, tail) + dot.edge(head, tail, label=" ") + # ^ workaround to avoid oversized loops # determine if there are double- or triple-colored wires in the harness; # if so, pad single-color wires to make all wires of equal thickness