From a6fcab687833dd95ea4a79230e473b2930cd72c9 Mon Sep 17 00:00:00 2001 From: leonnicolas Date: Fri, 26 Mar 2021 11:12:05 +0100 Subject: [PATCH] pkg/mesh/graph.go: fix format Previously the newlines were ignored by circo. This lead to very flat ellipses. Masked newlines "\\n" are correctly handeled. Signed-off-by: leonnicolas --- pkg/mesh/graph.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/mesh/graph.go b/pkg/mesh/graph.go index 76d68c8..619f6a8 100644 --- a/pkg/mesh/graph.go +++ b/pkg/mesh/graph.go @@ -169,9 +169,9 @@ func nodeLabel(location, name string, cidr *net.IPNet, priv, wgIP net.IP, endpoi if endpoint != nil { label = append(label, endpoint.String()) } - return graphEscape(strings.Join(label, "\n")) + return graphEscape(strings.Join(label, "\\n")) } func peerLabel(peer *Peer) string { - return graphEscape(fmt.Sprintf("%s\n%s\n", peer.Name, peer.Endpoint.String())) + return graphEscape(fmt.Sprintf("%s\\n%s\n", peer.Name, peer.Endpoint.String())) }