From 45f81b97d4776cb1003faff4677b3303d5568a11 Mon Sep 17 00:00:00 2001 From: Jan Christopher Vogt Date: Mon, 21 Sep 2015 16:43:21 +0200 Subject: [PATCH] Fix whitespace replacement QueryEscape generates + for spaces, but we want %20 instead, so dash displays it correctly --- dashing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashing.go b/dashing.go index 66991df..e546929 100644 --- a/dashing.go +++ b/dashing.go @@ -472,7 +472,7 @@ func autolink(target string) *html.Node { // newA creates a TOC anchor. func newA(name, etype string) *html.Node { - name = strings.Replace(url.QueryEscape(name), "%20", "+", -1) + name = strings.Replace(url.QueryEscape(name), "+", "%20", -1) target := fmt.Sprintf("//apple_ref/cpp/%s/%s", etype, name) return &html.Node{