aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tbl_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-03-06 15:48:52 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-03-06 15:48:52 +0000
commit87903ce8d582f66d32cc69fd2ddaaecdd1ba7110 (patch)
tree0262da45b6982ded2413c728986eaec08c03b902 /tbl_term.c
parenta46a5eca6f395c86f507c20f47ab147378f70f00 (diff)
downloadmandoc-87903ce8d582f66d32cc69fd2ddaaecdd1ba7110.tar.gz
mandoc-87903ce8d582f66d32cc69fd2ddaaecdd1ba7110.tar.zst
mandoc-87903ce8d582f66d32cc69fd2ddaaecdd1ba7110.zip
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@.
Diffstat (limited to 'tbl_term.c')
-rw-r--r--tbl_term.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tbl_term.c b/tbl_term.c
index c4702a16..12767766 100644
--- a/tbl_term.c
+++ b/tbl_term.c
@@ -1,4 +1,4 @@
-/* $Id: tbl_term.c,v 1.39 2015/03/06 11:03:03 schwarze Exp $ */
+/* $Id: tbl_term.c,v 1.40 2015/03/06 15:48:53 schwarze Exp $ */
/*
* Copyright (c) 2009, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011, 2012, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -66,9 +66,6 @@ term_tbl(struct termp *tp, const struct tbl_span *sp)
size_t rmargin, maxrmargin, tsz;
int ic, horiz, spans, vert;
- if (tp->tbl.cols == NULL)
- term_flushln(tp);
-
rmargin = tp->rmargin;
maxrmargin = tp->maxrmargin;