aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2011-01-25 12:35:09 +0000
committerIngo Schwarze <schwarze@openbsd.org>2011-01-25 12:35:09 +0000
commit7d4de02dd6695c84d1787692b20b6a2d9942a67d (patch)
tree1f79166531ba180d56cf84ef5d721cd21989d5a9 /man_term.c
parent32399be7a2c7f4d8b7d359d15e610a11b6788492 (diff)
downloadmandoc-7d4de02dd6695c84d1787692b20b6a2d9942a67d.tar.gz
mandoc-7d4de02dd6695c84d1787692b20b6a2d9942a67d.tar.zst
mandoc-7d4de02dd6695c84d1787692b20b6a2d9942a67d.zip
Avoid double blank line before a table preceded by .PP.
ok kristaps@
Diffstat (limited to 'man_term.c')
-rw-r--r--man_term.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/man_term.c b/man_term.c
index 47a092fb..06bf35d9 100644
--- a/man_term.c
+++ b/man_term.c
@@ -1,4 +1,4 @@
-/* $Id: man_term.c,v 1.100 2011/01/23 14:54:21 schwarze Exp $ */
+/* $Id: man_term.c,v 1.101 2011/01/25 12:35:09 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -212,6 +212,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;