summaryrefslogtreecommitdiffstats
path: root/man_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2021-06-28 19:50:15 +0000
committerIngo Schwarze <schwarze@openbsd.org>2021-06-28 19:50:15 +0000
commit550e6d36d35c3ae32b76210b8ac5fc044c08991e (patch)
tree768e287c160ec41d87df037f2145b4b03c37d806 /man_term.c
parent2ec8a158cb2aaa80f61ebc3874b1650780239ef5 (diff)
downloadmandoc-550e6d36d35c3ae32b76210b8ac5fc044c08991e.tar.gz
In terminal output of man(7) documents, stop printing two extra blank
lines before the NAME section and before the page footer. While these blank lines had a long tradition, they didn't really serve any purpose and merely wasted screen real estate. Besides, this makes output from man(7) more similar to output from mdoc(7). This commit keeps mandoc compatible with groff-current, where G. Branden Robinson committed the same change on June 16 (groff commit 2278d6ed).
Diffstat (limited to 'man_term.c')
-rw-r--r--man_term.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/man_term.c b/man_term.c
index 9360f06b..7ba2cda7 100644
--- a/man_term.c
+++ b/man_term.c
@@ -1021,10 +1021,6 @@ print_man_foot(struct termp *p, const struct roff_meta *meta)
*/
if ( ! p->mdocstyle) {
- if (meta->hasbody) {
- term_vspace(p);
- term_vspace(p);
- }
mandoc_asprintf(&title, "%s(%s)",
meta->title, meta->msec);
} else if (meta->os != NULL) {
@@ -1143,9 +1139,5 @@ print_man_head(struct termp *p, const struct roff_meta *meta)
*/
term_vspace(p);
- if ( ! p->mdocstyle) {
- term_vspace(p);
- term_vspace(p);
- }
free(title);
}