diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2012-07-10 20:36:34 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2012-07-10 20:36:34 +0000 |
commit | 3bf481531b839d4c0f30afbf11cc1c1c131bcf21 (patch) | |
tree | e582108f3175c07cd6d21249459d5ea5a5037099 /usr.bin/mandoc/mdoc_man.c | |
parent | 80f833cf040f5fefb18badd53d2aa008031c4946 (diff) |
basic implementation of -Tman .Bl -tag
while here, do some minor outflags cleanup
Diffstat (limited to 'usr.bin/mandoc/mdoc_man.c')
-rw-r--r-- | usr.bin/mandoc/mdoc_man.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/mandoc/mdoc_man.c b/usr.bin/mandoc/mdoc_man.c index f455fb5fe8b..a15dde346ef 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.29 2012/07/10 19:53:11 schwarze Exp $ */ +/* $Id: mdoc_man.c,v 1.30 2012/07/10 20:36:33 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Ingo Schwarze <schwarze@openbsd.org> * @@ -760,6 +760,7 @@ static void post_bl(DECL_ARGS) { + outflags |= MMAN_br; if (LIST_enum == n->norm->Bl.type) n->norm->Bl.count = 0; } @@ -1048,16 +1049,15 @@ pre_it(DECL_ARGS) print_width(bln->norm->Bl.width, NULL); outflags |= MMAN_nl; print_count(&bln->norm->Bl.count); - outflags |= MMAN_nl; break; case (LIST_hang): print_width(bln->norm->Bl.width, n->child); - outflags |= MMAN_nl; break; - default: - if (bln->norm->Bl.width) - print_width(bln->norm->Bl.width, n->child); + case (LIST_tag): + print_width(bln->norm->Bl.width, NULL); break; + default: + return(1); } outflags |= MMAN_nl; default: |