summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2011-01-25 12:35:08 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2011-01-25 12:35:08 +0000
commit47d4d332103affebb1831d7ebef4b85e001f9592 (patch)
tree5e3f55d1c80bf2444b3cbce818a183b9b6a3884d
parent32a9bf7c9c5c910fca0662b906f06e82c319abd1 (diff)
Avoid double blank line before a table preceded by .PP.
ok kristaps@
-rw-r--r--usr.bin/mandoc/man_term.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/mandoc/man_term.c b/usr.bin/mandoc/man_term.c
index 455d37cd4d3..6fb2154fb85 100644
--- a/usr.bin/mandoc/man_term.c
+++ b/usr.bin/mandoc/man_term.c
@@ -1,4 +1,4 @@
-/* $Id: man_term.c,v 1.63 2011/01/23 14:54:15 schwarze Exp $ */
+/* $Id: man_term.c,v 1.64 2011/01/25 12:35:07 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -208,6 +208,9 @@ print_bvspace(struct termp *p, const struct man_node *n)
{
term_newln(p);
+ if (n->body && n->body->child && MAN_TBL == n->body->child->type)
+ return;
+
if (NULL == n->prev)
return;