From 4c793e0ee64ee985f5b505224a5b526f445172ca Mon Sep 17 00:00:00 2001 From: Johan Bloemberg Date: Sat, 10 Feb 2018 23:59:10 +0100 Subject: [PATCH] misc: Fix graphviz output for hostnames with dot in them --- pgraph/graphviz.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgraph/graphviz.go b/pgraph/graphviz.go index 35722702..0ee5ed51 100644 --- a/pgraph/graphviz.go +++ b/pgraph/graphviz.go @@ -41,7 +41,7 @@ func (g *Graph) Graphviz() (out string) { // B -> C [label=g]; // D -> E [label=h]; //} - out += fmt.Sprintf("digraph %s {\n", g.GetName()) + out += fmt.Sprintf("digraph \"%s\" {\n", g.GetName()) out += fmt.Sprintf("\tlabel=\"%s\";\n", g.GetName()) //out += "\tnode [shape=box];\n" str := ""