diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-12-05 15:59:27 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-12-05 15:59:27 +0000 |
commit | 74b591fa2335010445acec31b76b8d78dc0f278c (patch) | |
tree | a570ccef694d7af879dcd900fd77e52c7ee09814 | |
parent | ccc48ef0cb2c302ab906918b551244c55c40d4bf (diff) | |
download | mandoc-74b591fa2335010445acec31b76b8d78dc0f278c.tar.gz mandoc-74b591fa2335010445acec31b76b8d78dc0f278c.tar.zst mandoc-74b591fa2335010445acec31b76b8d78dc0f278c.zip |
Remove repeat notification of -width omission. From a patch by schwarze@.
-rw-r--r-- | mdoc_validate.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index e54bbd58..dda9f768 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_validate.c,v 1.137 2010/12/05 15:55:01 kristaps Exp $ */ +/* $Id: mdoc_validate.c,v 1.138 2010/12/05 15:59:27 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -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; } |