Skip to content

Commit

Permalink
Merge pull request #144 from squat/fix_graph_newlines
Browse files Browse the repository at this point in the history
pkg/mesh/graph.go: fix format
  • Loading branch information
leonnicolas authored Apr 11, 2021
2 parents b59210e + a6fcab6 commit 6684d5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/mesh/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
}

0 comments on commit 6684d5b

Please sign in to comment.