summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2012-07-14 09:05:59 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2012-07-14 09:05:59 +0000
commit2b6567a7e3007502222f44800ee17b7fc24e083a (patch)
tree9e92b1fa12ab764d1a72a4b67762d10d852b86b5 /usr.bin
parente0db41a474aac171fc6a403240756c74621f29e2 (diff)
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.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/mandoc/mdoc_man.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_man.c b/usr.bin/mandoc/mdoc_man.c
index acc79793827..6d180fd9381 100644
--- a/usr.bin/mandoc/mdoc_man.c
+++ b/usr.bin/mandoc/mdoc_man.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_man.c,v 1.36 2012/07/13 23:56:35 schwarze Exp $ */
+/* $Id: mdoc_man.c,v 1.37 2012/07/14 09:05:58 schwarze Exp $ */
/*
* Copyright (c) 2011, 2012 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -1112,7 +1112,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) {