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 | 7f36e58ef077e2bf3ff4592144b6be7ccc0db8de (patch) | |
tree | 6cfddb47fabc9a3aa09e66786d7c5bc244574cd4 /html.c | |
parent | 9f048bffaf55fe5d4982bd74026e6003754fe978 (diff) | |
download | mandoc-7f36e58ef077e2bf3ff4592144b6be7ccc0db8de.tar.gz mandoc-7f36e58ef077e2bf3ff4592144b6be7ccc0db8de.tar.zst mandoc-7f36e58ef077e2bf3ff4592144b6be7ccc0db8de.zip |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.270 2020/04/20 13:07:24 schwarze Exp $ */ +/* $Id: html.c,v 1.271 2020/10/16 17:22:43 schwarze Exp $ */ /* * Copyright (c) 2011-2015, 2017-2020 Ingo Schwarze <schwarze@openbsd.org> * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> @@ -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}, |