From de8cb0a1cf06d091dbe586fed85fb1cf904a33ac Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Fri, 28 Sep 2018 12:37:10 -0400 Subject: Encode non-alphanum chars like %, + in URLs in the docs Use $itemSymOrIDEnc instead of $itemSymOrID in the id and href attr in a tags. Fixes https://github.com/nim-lang/Nim/issues/9097. Thanks to @LemonBoy for helping with this commit. --- Update the tests too -- "nim c -r nimdoc/tester" passes. --- nimdoc/testproject/expected/subdir/subdir_b/utils.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'nimdoc/testproject/expected/subdir') diff --git a/nimdoc/testproject/expected/subdir/subdir_b/utils.html b/nimdoc/testproject/expected/subdir/subdir_b/utils.html index 285d09d5c..d81be8f48 100644 --- a/nimdoc/testproject/expected/subdir/subdir_b/utils.html +++ b/nimdoc/testproject/expected/subdir/subdir_b/utils.html @@ -1250,7 +1250,7 @@ function main() {
  • Procs @@ -1265,7 +1265,8 @@ function main() {

    Types

    -
    SomeType = enum
    +
    +
    SomeType = enum
       enumValueA, enumValueB, enumValueC
    @@ -1276,7 +1277,8 @@ function main() {

    Procs

    -
    proc someType(): SomeType {...}{.raises: [], tags: [].}
    + +
    proc someType(): SomeType {...}{.raises: [], tags: [].}
    constructor. -- cgit 1.4.1-2-gfad0