tijo-graph: escape dollar signs

andybalholm
Apr 7, 2023, 2:54 AM
HIBCCYNIYZZCEWERJHPMDU2W7EU35TCHN66MT4C35CYZOV6UGQUAC

Dependencies

  • [2] EYPCPIP7 Apply changes and build a graph
  • [3] OYWKC4LZ tijo-graph: direct SVG output
  • [4] YGCYIX6C Handle Replacement hunks

Change contents

  • edit in cmd/tijo-graph/main.go at line 14
    [2.13280]
    [2.13280]
    "strconv"
  • replacement in cmd/tijo-graph/main.go at line 138
    [2.15416][2.15416:15501]()
    fmt.Fprintf(b, " content: %q {shape: code}\n", hexdump.Dump(block.Content, 0, 4))
    [2.15416]
    [2.15501]
    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
    [2.15537][2.15537:15602]()
    fmt.Fprintf(b, " content: %q {shape: code}\n", block.Content)
    [2.15537]
    [2.15602]
    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)
    }