diff options
author | 2012-07-14 09:05:58 +0000 | |
---|---|---|
committer | 2012-07-14 09:05:58 +0000 | |
commit | bf0a1cb968d2d678714f534337c51c3256a8926a (patch) | |
tree | b2132f2a85b26bfb7823dc78c11a0c2f6af6b667 /usr.bin/mandoc/mdoc_man.c | |
parent | reorganize the makefile a bit (diff) | |
download | wireguard-openbsd-bf0a1cb968d2d678714f534337c51c3256a8926a.tar.xz wireguard-openbsd-bf0a1cb968d2d678714f534337c51c3256a8926a.zip |
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/mandoc/mdoc_man.c')
-rw-r--r-- | usr.bin/mandoc/mdoc_man.c | 5 |
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) { |