misc: Fix graphviz output for hostnames with dot in them

This commit is contained in:
Johan Bloemberg
2018-02-10 23:59:10 +01:00
parent 68a7de41ae
commit 4c793e0ee6

View File

@@ -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 := ""