help / color / mirror / Atom feed
* mandoc: Stop unconditionally emitting vertical space before .TS (table
@ 2022-08-28  9:57 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2022-08-28  9:57 UTC (permalink / raw)
  To: source

Log Message:
Stop unconditionally emitting vertical space before .TS (table start).
Same change as in groff commit 7ec36dc9 Jul 30 2022 gbranden@
For more details, see

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).

Modified Files:

Revision Data
Index: man_term.c
RCS file: /home/cvs/mandoc/mandoc/man_term.c,v
retrieving revision 1.240
retrieving revision 1.241
diff -Lman_term.c -Lman_term.c -u -p -r1.240 -r1.241
--- man_term.c
+++ man_term.c
@@ -951,7 +951,7 @@ print_man_node(DECL_ARGS)
 	case ROFFT_TBL:
 		if (p->tbl.cols == NULL)
-			term_vspace(p);
+			term_newln(p);
 		term_tbl(p, n->span);
 To unsubscribe send an email to

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-28  9:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-28  9:57 mandoc: Stop unconditionally emitting vertical space before .TS (table schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).