diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2020-10-16 17:22:43 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2020-10-16 17:22:43 +0000 |
commit | e6ebe29e01dda236ae873eb8841f10bc6640c8d5 (patch) | |
tree | afc871e929a8e1bccec831668c7997844336bf37 /regress/mdoc | |
parent | 8539c24bce93430b560ca288ae81e8c90993e54b (diff) | |
download | mandoc-e6ebe29e01dda236ae873eb8841f10bc6640c8d5.tar.gz |
In HTML output, avoid printing a newline right after <pre>
and right before </pre> because that resulted in vertical
whitespace not requested by the manual page author.
Formatting bug reported by
Aman Verma <amanraoverma plus vim at gmail dot com> on discuss@.
Diffstat (limited to 'regress/mdoc')
-rw-r--r-- | regress/mdoc/Bd/nf.out_html | 18 | ||||
-rw-r--r-- | regress/mdoc/Bd/paragraph.out_html | 6 | ||||
-rw-r--r-- | regress/mdoc/Rs/paragraph.out_html | 1 |
3 files changed, 8 insertions, 17 deletions
diff --git a/regress/mdoc/Bd/nf.out_html b/regress/mdoc/Bd/nf.out_html index 394eb7ed..83083353 100644 --- a/regress/mdoc/Bd/nf.out_html +++ b/regress/mdoc/Bd/nf.out_html @@ -1,20 +1,14 @@ -<pre> -after .nf -request -</pre> +<pre>after .nf +request</pre> <p class="Pp">after .fi request</p> <div class="Bd Pp"> -<pre> -in unfilled -block -</pre> +<pre>in unfilled +block</pre> after .fi request in unfilled block</div> after end of unfilled block <div class="Bd Pp">in filled block -<pre> -after .nf request -in filled block -</pre> +<pre>after .nf request +in filled block</pre> </div> after end of filled block <br/> diff --git a/regress/mdoc/Bd/paragraph.out_html b/regress/mdoc/Bd/paragraph.out_html index cc3491c9..22355ed1 100644 --- a/regress/mdoc/Bd/paragraph.out_html +++ b/regress/mdoc/Bd/paragraph.out_html @@ -8,13 +8,11 @@ back to normal <p class="Pp">another paragraph</p> <div class="Bd Pp" id="unfilled"> -<pre> -<a class="permalink" href="#unfilled">unfilled</a> literal +<pre><a class="permalink" href="#unfilled">unfilled</a> literal display <mark id="upara"></mark> <a class="permalink" href="#upara">unfilled</a> literal -paragraph -</pre> +paragraph</pre> </div> again back to normal <br/> diff --git a/regress/mdoc/Rs/paragraph.out_html b/regress/mdoc/Rs/paragraph.out_html index ba5fb63a..bfb0a724 100644 --- a/regress/mdoc/Rs/paragraph.out_html +++ b/regress/mdoc/Rs/paragraph.out_html @@ -13,4 +13,3 @@ <p class="Pp">in a paragraph:</p> <p class="Pp"><cite class="Rs"><span class="RsA">another author</span>, <i class="RsB">another book</i>.</cite></p> -<pre> |