summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-05 15:59:27 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-05 15:59:27 +0000
commitdb89a3957c75469c4a73ca032acb325db8294f7a (patch)
treee7b9fb879adaa928673caa98e761dc4a91c724e4
parentda864306deafefa98f63fe802fa901c9aec68f65 (diff)
downloadmandoc-db89a3957c75469c4a73ca032acb325db8294f7a.tar.gz
Remove repeat notification of -width omission. From a patch by schwarze@.
-rw-r--r--mdoc_validate.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index c25bbf6d..156c67e7 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -1448,11 +1448,8 @@ post_bl_block_tag(POST_ARGS)
assert(MDOC_BLOCK == nn->type);
nn = nn->head->child;
- if (nn == NULL) {
- /* No -width for .Bl and first .It is emtpy */
- mdoc_nmsg(mdoc, n, MANDOCERR_NOWIDTHARG);
+ if (nn == NULL)
break;
- }
if (MDOC_TEXT == nn->type) {
sz = strlen(nn->string) + 1;
@@ -1461,8 +1458,6 @@ post_bl_block_tag(POST_ARGS)
if (0 != (ssz = mdoc_macro2len(nn->tok)))
sz = ssz;
- else
- mdoc_nmsg(mdoc, n, MANDOCERR_NOWIDTHARG);
break;
}