summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2022-08-28 09:57:14 +0000
committerIngo Schwarze <schwarze@openbsd.org>2022-08-28 09:57:14 +0000
commitdbaed491a737e6f059cd8121326de7b6831b8a9b (patch)
treeab8caca393f40e0b6ef09365a88119505b619d76
parent8ab16425f033eb7746389e5b15f332b1d2f7e1a8 (diff)
downloadmandoc-dbaed491a737e6f059cd8121326de7b6831b8a9b.tar.gz
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).
-rw-r--r--man_term.c2
1 files changed, 1 insertions, 1 deletions
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: