diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-12-06 13:50:41 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-12-06 13:50:41 +0000 |
commit | 0e8185a78ba3a32f8dc0bbf129a499a5886091c1 (patch) | |
tree | b8b57a547388698f99a904f5f74e34e9fc7492fb | |
parent | 8faaafb16dedc1c54de232f2d4ea293073ffb034 (diff) | |
download | mandoc-0e8185a78ba3a32f8dc0bbf129a499a5886091c1.tar.gz |
Allow HP/IP/etc. to have no arguments, as they're optional. From a field-
tested patch by schwarze@.
-rw-r--r-- | man_validate.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/man_validate.c b/man_validate.c index a3a8669a..f345e595 100644 --- a/man_validate.c +++ b/man_validate.c @@ -321,9 +321,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); |