diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2024-08-17 20:02:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-17 20:02:36 +0800 |
commit | 253fafb30500fb871404767c436fd4c081ffc854 (patch) | |
tree | 421232cf14fb67ed82bae1f246d766e5b2d08bbc /nimdoc | |
parent | e96fad1eed5c87a5a0b13bb39d1e5da176e488e1 (diff) | |
download | Nim-253fafb30500fb871404767c436fd4c081ffc854.tar.gz |
fixes docgen regression: don't add newLine for code if it's the first line (#23154)
Before (devel) ![image](https://github.com/nim-lang/Nim/assets/43030857/cde37109-027a-46c1-a37e-1d6062e6c609) After (this PR and stable) ![image](https://github.com/nim-lang/Nim/assets/43030857/3366877c-7223-4749-a584-fe93f731281f) It now keeps the same behavior as before
Diffstat (limited to 'nimdoc')
-rw-r--r-- | nimdoc/test_doctype/expected/test_doctype.html | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nimdoc/test_doctype/expected/test_doctype.html b/nimdoc/test_doctype/expected/test_doctype.html index 659aec5e3..2cbf6ec0f 100644 --- a/nimdoc/test_doctype/expected/test_doctype.html +++ b/nimdoc/test_doctype/expected/test_doctype.html @@ -62,8 +62,7 @@ <div id="tocRoot"></div> <p class="module-desc"><p>Check</p> -<p><pre class="listing"> -<span class="Identifier">text</span></pre></p> +<p><pre class="listing"><span class="Identifier">text</span></pre></p> <h1><a class="toc-backref" id="check" href="#check">Check</a></h1> <h1><a class="toc-backref" id="text" href="#text">text</a></h1></p> |