summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/tbl_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2015-03-09 17:41:37 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2015-03-09 17:41:37 +0000
commit34fe11188145c9bfe3918f1bc2dd27cc41ba3139 (patch)
tree7e3399cdd559291868fc3237169252724b52628d /usr.bin/mandoc/tbl_term.c
parent9ed1e68c1130c2fe7fa16e7e68dc826e581d17fe (diff)
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 'usr.bin/mandoc/tbl_term.c')
-rw-r--r--usr.bin/mandoc/tbl_term.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/mandoc/tbl_term.c b/usr.bin/mandoc/tbl_term.c
index 7ff3e983564..7f9080519c2 100644
--- a/usr.bin/mandoc/tbl_term.c
+++ b/usr.bin/mandoc/tbl_term.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tbl_term.c,v 1.27 2015/03/09 17:30:29 schwarze Exp $ */
+/* $OpenBSD: tbl_term.c,v 1.28 2015/03/09 17:41:36 schwarze Exp $ */
/*
* Copyright (c) 2009, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011, 2012, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -64,9 +64,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;