diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-10-27 10:17:46 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-10-27 10:17:46 +0000 |
commit | fc9364bd9089b68057332e5eb5c402157dbc0c4d (patch) | |
tree | 2424d725132236b2930c8636dcb860b7ade38b69 | |
parent | 58b2c9aa4724f3e432e17e17b4d9a99a8f608600 (diff) |
The man(7) macros .HP .IP .RS .TP accept *optional* arguments,
so do not throw an ERROR when there are none.
Formatting is already correct:
With no arguments, use default widths and no tag.
Problem reported by naddy@, thanks.
-rw-r--r-- | usr.bin/mandoc/man_validate.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/mandoc/man_validate.c b/usr.bin/mandoc/man_validate.c index 4b838feadfe..c59d9e0bdff 100644 --- a/usr.bin/mandoc/man_validate.c +++ b/usr.bin/mandoc/man_validate.c @@ -1,4 +1,4 @@ -/* $Id: man_validate.c,v 1.30 2010/10/15 20:45:03 schwarze Exp $ */ +/* $Id: man_validate.c,v 1.31 2010/10/27 10:17:45 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -310,9 +310,7 @@ check_par(CHKARGS) break; return(man_nmsg(m, n, MANDOCERR_ARGSLOST)); default: - if (n->nchild) - break; - return(man_nmsg(m, n, MANDOCERR_NOARGS)); + break; } return(1); |