From dbaed491a737e6f059cd8121326de7b6831b8a9b Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 28 Aug 2022 09:57:14 +0000 Subject: Stop unconditionally emitting vertical space before .TS (table start). Same change as in groff commit 7ec36dc9 Jul 30 2022 gbranden@ For more details, see https://savannah.gnu.org/bugs/index.php?62841 This change makes sense because: * It improves the formatting of more pages than it degrades. * Existing manual pages are wildly inconsistent in which behaviour they expect: apparently few manual page authors understood the old rules. * It simplifies the rules of how .TS behaves in man(7) and makes them more similar to how it behaves in mdoc(7). * It improves flexibility, making it possible for a table to immediately follow preceding text without a blank line, which some existing pages want to use, for example XCreateWindow(3). --- man_term.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man_term.c b/man_term.c index 33431749..0b839887 100644 --- a/man_term.c +++ b/man_term.c @@ -951,7 +951,7 @@ print_man_node(DECL_ARGS) return; case ROFFT_TBL: if (p->tbl.cols == NULL) - term_vspace(p); + term_newln(p); term_tbl(p, n->span); return; default: -- cgit