summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2012-07-10 20:37:02 +0000
committerIngo Schwarze <schwarze@openbsd.org>2012-07-10 20:37:02 +0000
commit4452fbf1f2798a60d954b8cc4e2c7f49f5d9fea8 (patch)
treeb5bc1f5a3d595f839436078fcaa0606a31036f63
parentb0095a770753743c2ece0f095b914220c7ae47fb (diff)
downloadmandoc-4452fbf1f2798a60d954b8cc4e2c7f49f5d9fea8.tar.gz
basic implementation of -Tman .Bl -tag
while here, do some minor outflags cleanup OpenBSD rev. 1.30
-rw-r--r--mdoc_man.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mdoc_man.c b/mdoc_man.c
index 1c84958f..dfa44589 100644
--- a/mdoc_man.c
+++ b/mdoc_man.c
@@ -764,6 +764,7 @@ static void
post_bl(DECL_ARGS)
{
+ outflags |= MMAN_br;
if (LIST_enum == n->norm->Bl.type)
n->norm->Bl.count = 0;
}
@@ -1052,16 +1053,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: