tijo-graph: escape dollar signs
Dependencies
- [2]
EYPCPIP7Apply changes and build a graph - [3]
OYWKC4LZtijo-graph: direct SVG output - [4]
YGCYIX6CHandle Replacement hunks
Change contents
- edit in cmd/tijo-graph/main.go at line 14
"strconv" - replacement in cmd/tijo-graph/main.go at line 138
fmt.Fprintf(b, " content: %q {shape: code}\n", hexdump.Dump(block.Content, 0, 4))fmt.Fprintf(b, " content: %s {shape: code}\n", quoteString(hexdump.Dump(block.Content, 0, 4))) - replacement in cmd/tijo-graph/main.go at line 140
fmt.Fprintf(b, " content: %q {shape: code}\n", block.Content)fmt.Fprintf(b, " content: %s {shape: code}\n", quoteString(string(block.Content))) - edit in cmd/tijo-graph/main.go at line 158[2.15871]
func quoteString(s string) string {return strings.Replace(strconv.Quote(s), "$", `\x24`, -1)}