scribble HTML rendering: unreserved-encode "on this page" links

In other words, replace "(...)" with "%28...%29" in links.
This commit is contained in:
Matthew Flatt 2013-05-14 11:45:34 -06:00
parent 967021ca63
commit 7c0ab55cbc

View File

@ -639,13 +639,14 @@
`((a ([href
,(format
"#~a"
(anchor-name
(add-tag-prefixes
(tag-key (if (part? p)
(car (part-tags/nonempty p))
(target-element-tag p))
ri)
prefixes)))]
(uri-unreserved-encode
(anchor-name
(add-tag-prefixes
(tag-key (if (part? p)
(car (part-tags/nonempty p))
(target-element-tag p))
ri)
prefixes))))]
[class
,(cond
[(part? p) "tocsubseclink"]