Skip to content

Commit 6684d5b

Browse files
authored
Merge pull request #144 from squat/fix_graph_newlines
pkg/mesh/graph.go: fix format
2 parents b59210e + a6fcab6 commit 6684d5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/mesh/graph.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ func nodeLabel(location, name string, cidr *net.IPNet, priv, wgIP net.IP, endpoi
169169
if endpoint != nil {
170170
label = append(label, endpoint.String())
171171
}
172-
return graphEscape(strings.Join(label, "\n"))
172+
return graphEscape(strings.Join(label, "\\n"))
173173
}
174174

175175
func peerLabel(peer *Peer) string {
176-
return graphEscape(fmt.Sprintf("%s\n%s\n", peer.Name, peer.Endpoint.String()))
176+
return graphEscape(fmt.Sprintf("%s\\n%s\n", peer.Name, peer.Endpoint.String()))
177177
}

0 commit comments

Comments
 (0)