From ece1130543926ea0ba9501d03e83d5b9b3397ca1 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 6 Mar 2015 15:48:52 +0000 Subject: Fix vertical spacing at the beginning of tables. man(7) always prints a blank line, mdoc(7) doesn't. Problem in mdoc(7) reported by kristaps@. mdoc(7) part of the patch tested by kristaps@. --- mdoc_term.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mdoc_term.c') diff --git a/mdoc_term.c b/mdoc_term.c index 33591c38..0f23ec15 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -348,6 +348,8 @@ print_mdoc_node(DECL_ARGS) p->flags |= TERMP_NOSPACE; break; case MDOC_TBL: + if (p->tbl.cols == NULL) + term_newln(p); term_tbl(p, n->span); break; default: -- cgit