Skip to content

Commit

Permalink
Modified URL encoding again.
Browse files Browse the repository at this point in the history
Still trying to resolve issue #9.
  • Loading branch information
technosophos committed Sep 20, 2015
1 parent 87290cb commit bd8de2c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dashing.go
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,7 @@ func autolink(target string) *html.Node {

// newA creates a TOC anchor.
func newA(name, etype string) *html.Node {
u := &url.URL{Path: name}
name = url.QueryEscape(u.String())
name = strings.Replace(url.QueryEscape(name), "%20", "+", -1)

target := fmt.Sprintf("//apple_ref/cpp/%s/%s", etype, name)
return &html.Node{
Expand Down

0 comments on commit bd8de2c

Please sign in to comment.