From c6dfbfc2cf8005d1c92dbf4453ad5b4a211900be Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Tue, 9 Oct 2018 14:48:00 -0400 Subject: [PATCH] Do not encode the anchors in docs (`id` attr in `a` tags) (#9261) Update the tests too. Fixes https://github.com/nim-lang/Nim/issues/9232. --- config/nimdoc.cfg | 2 +- nimdoc/testproject/expected/subdir/subdir_b/utils.html | 2 +- nimdoc/testproject/expected/testproject.html | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/nimdoc.cfg b/config/nimdoc.cfg index a955254f25..f89739df69 100644 --- a/config/nimdoc.cfg +++ b/config/nimdoc.cfg @@ -38,7 +38,7 @@ doc.section.toc = """ # * $seeSrc: generated HTML from doc.item.seesrc (if some switches are used). doc.item = """ - +
$header
$desc diff --git a/nimdoc/testproject/expected/subdir/subdir_b/utils.html b/nimdoc/testproject/expected/subdir/subdir_b/utils.html index 8ba90657b9..e7f9cd5087 100644 --- a/nimdoc/testproject/expected/subdir/subdir_b/utils.html +++ b/nimdoc/testproject/expected/subdir/subdir_b/utils.html @@ -1277,7 +1277,7 @@ function main() {

Procs

- +
proc someType(): SomeType {...}{.raises: [], tags: [].}
constructor. diff --git a/nimdoc/testproject/expected/testproject.html b/nimdoc/testproject/expected/testproject.html index 2ea18323fe..1d09d809cb 100644 --- a/nimdoc/testproject/expected/testproject.html +++ b/nimdoc/testproject/expected/testproject.html @@ -1308,7 +1308,7 @@ function main() {

Procs

- +
proc bar[T](a, b: T): T
@@ -1319,7 +1319,7 @@ function main() {

Macros

- +
macro bar(): untyped
@@ -1330,7 +1330,7 @@ function main() {

Templates

- +
template foo(a, b: SomeType)
This does nothing