summaryrefslogtreecommitdiffstats
path: root/html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2020-10-16 17:22:43 +0000
committerIngo Schwarze <schwarze@openbsd.org>2020-10-16 17:22:43 +0000
commite6ebe29e01dda236ae873eb8841f10bc6640c8d5 (patch)
treeafc871e929a8e1bccec831668c7997844336bf37 /html.c
parent8539c24bce93430b560ca288ae81e8c90993e54b (diff)
downloadmandoc-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 'html.c')
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.c b/html.c
index beb9b023..96dc8cd8 100644
--- a/html.c
+++ b/html.c
@@ -81,7 +81,7 @@ static const struct htmldata htmltags[TAG_MAX] = {
{"h1", HTML_TOPHRASE | HTML_NLAROUND},
{"h2", HTML_TOPHRASE | HTML_NLAROUND},
{"p", HTML_TOPHRASE | HTML_NLAROUND | HTML_INDENT},
- {"pre", HTML_TOPHRASE | HTML_NLALL | HTML_NOINDENT},
+ {"pre", HTML_TOPHRASE | HTML_NLAROUND | HTML_NOINDENT},
{"a", HTML_INPHRASE | HTML_TOPHRASE},
{"b", HTML_INPHRASE | HTML_TOPHRASE},
{"cite", HTML_INPHRASE | HTML_TOPHRASE},