From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp1.rz.uni-karlsruhe.de (Debian-exim@smtp1.rz.uni-karlsruhe.de [129.13.185.217]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id o9RAMQK7017641 for ; Wed, 27 Oct 2010 06:22:27 -0400 (EDT) Received: from hekate.usta.de (asta-nat.asta.uni-karlsruhe.de [172.22.63.82]) by smtp1.rz.uni-karlsruhe.de with esmtp (Exim 4.63 #1) id 1PB39E-0002ln-VS; Wed, 27 Oct 2010 12:22:25 +0200 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.71) (envelope-from ) id 1PB39E-0005RZ-UC for tech@mdocml.bsd.lv; Wed, 27 Oct 2010 12:22:24 +0200 Received: from iris.usta.de ([172.24.96.5] helo=usta.de) by donnerwolke.usta.de with esmtp (Exim 4.69) (envelope-from ) id 1PB39E-0003aC-TU for tech@mdocml.bsd.lv; Wed, 27 Oct 2010 12:22:24 +0200 Received: from schwarze by usta.de with local (Exim 4.71) (envelope-from ) id 1PB39E-0002L3-JH for tech@mdocml.bsd.lv; Wed, 27 Oct 2010 12:22:24 +0200 Date: Wed, 27 Oct 2010 12:22:24 +0200 From: Ingo Schwarze To: tech@mdocml.bsd.lv Subject: .IP without line args is not an ERROR Message-ID: <20101027102224.GB16057@iris.usta.de> X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) OK to commit this to bsd.lv, too? ----- Forwarded message from Ingo Schwarze ----- From: Ingo Schwarze Date: Wed, 27 Oct 2010 04:17:45 -0600 (MDT) To: source-changes@cvs.openbsd.org CVSROOT: /cvs Module name: src Changes by: schwarze@cvs.openbsd.org 2010/10/27 04:17:45 Modified files: usr.bin/mandoc : man_validate.c Log message: 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. ----- End forwarded message ----- Index: man_validate.c =================================================================== RCS file: /cvs/src/usr.bin/mandoc/man_validate.c,v retrieving revision 1.30 diff -u -p -r1.30 man_validate.c --- man_validate.c 15 Oct 2010 20:45:03 -0000 1.30 +++ man_validate.c 27 Oct 2010 10:04:00 -0000 @@ -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); -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv