summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mdoc_validate.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2010-10-26 22:48:07 +0000
committerschwarze <schwarze@openbsd.org>2010-10-26 22:48:07 +0000
commit817ac90b96c6ab68efab7342a00c5484bc4bce8d (patch)
treebd1a9366f48b7ddabe497b19470048601f4b8f91 /usr.bin/mandoc/mdoc_validate.c
parentSupport .so (low-level roff "switch source file"), (diff)
downloadwireguard-openbsd-817ac90b96c6ab68efab7342a00c5484bc4bce8d.tar.xz
wireguard-openbsd-817ac90b96c6ab68efab7342a00c5484bc4bce8d.zip
Downgrade nearly 20 ERRORS to WARNINGS.
All these indicate problems in the mdoc(7) or man(7) source code, but they can't cause relevant information loss or clobbered formatting. While here, error message improve wording and make it more uniform, don't throw MANDOCERR_NOWIDTHARG twice when there is one single issue, and consolidate MANDOCERR_WIDTHARG into MANDOCERR_IGNARGV.
Diffstat (limited to 'usr.bin/mandoc/mdoc_validate.c')
-rw-r--r--usr.bin/mandoc/mdoc_validate.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.bin/mandoc/mdoc_validate.c b/usr.bin/mandoc/mdoc_validate.c
index f2b89dc365d..985d853fafa 100644
--- a/usr.bin/mandoc/mdoc_validate.c
+++ b/usr.bin/mandoc/mdoc_validate.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_validate.c,v 1.74 2010/10/24 18:15:43 schwarze Exp $ */
+/* $Id: mdoc_validate.c,v 1.75 2010/10/26 22:48:07 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -731,11 +731,9 @@ pre_bl(PRE_ARGS)
case (LIST_inset):
/* FALLTHROUGH */
case (LIST_item):
- if (NULL == n->data.Bl->width)
- break;
- if (mdoc_nmsg(mdoc, n, MANDOCERR_WIDTHARG))
- break;
- return(0);
+ if (n->data.Bl->width)
+ mdoc_nmsg(mdoc, n, MANDOCERR_IGNARGV);
+ break;
default:
break;
}