Skip to content

Commit 152f97c

Browse files
17o2kvid
andcommitted
Add non-empty label to avoid over-sized loops (#381)
Work-around to improve the #286 use case. - #286 (comment) - https://stackoverflow.com/questions/70996779/graphviz-edges-between-cells-in-the-same-html-table-are-too-long Co-authored-by: kvid <kvid@users.noreply.github.com>
1 parent f5c00fa commit 152f97c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/wireviz/wv_harness.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@ def create_graph(self) -> Graph:
323323
dot.attr("edge", color="#000000")
324324
loops = gv_connector_loops(connector)
325325
for head, tail in loops:
326-
dot.edge(head, tail)
326+
dot.edge(head, tail, label=" ")
327+
# ^ workaround to avoid oversized loops
327328

328329
# determine if there are double- or triple-colored wires in the harness;
329330
# if so, pad single-color wires to make all wires of equal thickness

0 commit comments

Comments
 (0)