Skip to content

Commit

Permalink
Update dot.go
Browse files Browse the repository at this point in the history
  • Loading branch information
zeushammer authored Mar 21, 2024
1 parent aa7ee6c commit 21d2b8d
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions tools/dot.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func Dot(spec *Spec, w io.WriteCloser, fromNode, toNode string) error {
seen := make(map[string]bool)
node := func(name string, n *Node) error {
if n == nil {
return fmt.Errorf("Unknown node '%s'", name)
return fmt.Errorf("unknown node '%s'", name)
}

if _, already := seen[name]; already {
Expand Down Expand Up @@ -143,7 +143,6 @@ func Dot(spec *Spec, w io.WriteCloser, fromNode, toNode string) error {
}
if err != nil {
js = []byte(err.Error())
} else {
}
label = string(js)
label = strings.Replace(label, "\n", `<BR ALIGN="LEFT"/>`, -1)
Expand Down Expand Up @@ -237,13 +236,3 @@ func PNG(spec *Spec, basename string, fromNode, toNode string) (string, error) {
}
return pngname, nil
}

func escape(s string) string {
return strings.Replace(s, `"`, `\"`, -1)
}

func escbraces(s string) string {
s = strings.Replace(s, "{", "\\{", -1)
s = strings.Replace(s, "}", "\\}", -1)
return s
}

0 comments on commit 21d2b8d

Please sign in to comment.