summaryrefslogtreecommitdiffstats
path: root/mdoc_man.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2012-07-14 09:07:18 +0000
committerIngo Schwarze <schwarze@openbsd.org>2012-07-14 09:07:18 +0000
commit719447bb64de123d9c914061125d472f529eb3b0 (patch)
tree5e1c5de40560fcbe39b14db12d8afe6db00e6884 /mdoc_man.c
parent8b5f857cbf54295fca51bbb57dae149012ef3e95 (diff)
downloadmandoc-719447bb64de123d9c914061125d472f529eb3b0.tar.gz
In -Tman .Bl -compact, skip the blank line only before the first item
of the first list in a section, not before every item of the first list. OpenBSD rev. 1.37
Diffstat (limited to 'mdoc_man.c')
-rw-r--r--mdoc_man.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdoc_man.c b/mdoc_man.c
index c372ba7a..2673fe4a 100644
--- a/mdoc_man.c
+++ b/mdoc_man.c
@@ -1116,7 +1116,8 @@ pre_it(DECL_ARGS)
outflags |= MMAN_PP | MMAN_nl;
bln = n->parent->parent;
if (0 == bln->norm->Bl.comp ||
- NULL == bln->parent->prev)
+ (NULL == n->parent->prev &&
+ NULL == bln->parent->prev))
outflags |= MMAN_sp;
outflags &= ~MMAN_br;
switch (bln->norm->Bl.type) {