diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2012-07-14 09:07:18 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2012-07-14 09:07:18 +0000 |
commit | f5916232841f68e5d069fb2218e04f5f8c5a2c9e (patch) | |
tree | 7318433d633718ada971f5ac7b90e6fc7ef18913 | |
parent | 0bb60e59759992fd25d230f3066e4fa100493cf5 (diff) | |
download | mandoc-f5916232841f68e5d069fb2218e04f5f8c5a2c9e.tar.gz mandoc-f5916232841f68e5d069fb2218e04f5f8c5a2c9e.tar.zst mandoc-f5916232841f68e5d069fb2218e04f5f8c5a2c9e.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.
OpenBSD rev. 1.37
-rw-r--r-- | mdoc_man.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: mdoc_man.c,v 1.38 2012/07/13 23:57:58 schwarze Exp $ */ +/* $Id: mdoc_man.c,v 1.39 2012/07/14 09:07:18 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Ingo Schwarze <schwarze@openbsd.org> * @@ -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) { |