use backticks when applicable
This commit is contained in:
parent
f5d46b0584
commit
861338e731
1 changed files with 2 additions and 2 deletions
|
|
@ -257,9 +257,9 @@ func setGraphAttrs(attrs dagreGraphAttrs) string {
|
|||
}
|
||||
|
||||
func escapeID(id string) string {
|
||||
id = strings.ReplaceAll(id, "\\n", "\\\\n")
|
||||
id = strings.ReplaceAll(id, `\n`, `\\n`)
|
||||
// avoid an unescaped \r becoming a \n in the layout result
|
||||
id = strings.ReplaceAll(id, "\r", "\\r")
|
||||
id = strings.ReplaceAll(id, "\r", `\r`)
|
||||
return id
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue