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 oBM0hQ5t017880 for ; Tue, 21 Dec 2010 19:43:27 -0500 (EST) 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 1PVCnb-0001sa-LY; Wed, 22 Dec 2010 01:43:25 +0100 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.72) (envelope-from ) id 1PVCnb-0008VM-KH for tech@mdocml.bsd.lv; Wed, 22 Dec 2010 01:43:23 +0100 Received: from iris.usta.de ([172.24.96.5] helo=usta.de) by donnerwolke.usta.de with esmtp (Exim 4.69) (envelope-from ) id 1PVCnb-0000Fk-In for tech@mdocml.bsd.lv; Wed, 22 Dec 2010 01:43:23 +0100 Received: from schwarze by usta.de with local (Exim 4.72) (envelope-from ) id 1PVCnb-0005Dw-BO for tech@mdocml.bsd.lv; Wed, 22 Dec 2010 01:43:23 +0100 Date: Wed, 22 Dec 2010 01:43:23 +0100 From: Ingo Schwarze To: tech@mdocml.bsd.lv Subject: Re: mdocml: First, make `Pp' (next to `Sm') be allowed as the first element Message-ID: <20101222004323.GC9705@iris.usta.de> References: <201012160025.oBG0PZeE023827@krisdoz.my.domain> <20101221233338.GB9705@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 In-Reply-To: <20101221233338.GB9705@iris.usta.de> User-Agent: Mutt/1.5.21 (2010-09-15) Hi Kristaps, replying to myself... Ingo Schwarze wrote on Wed, Dec 22, 2010 at 12:33:38AM +0100: > kristaps@mdocml.bsd.lv wrote on Wed, Dec 15, 2010 at 07:25:35PM -0500: >> Log Message: >> ----------- >> First, make `Pp' (next to `Sm') be allowed as the first element of a >> `Bl' (before any `It' have been invoked). Next, have the existence of >> either macro raise a warning, as it's technically not legal according to >> mdoc.7. > Hmm, i agree it is good that Pp does not throw FATAL at this point, > and it is good that Pp throws a WARNING here, but Sm is just fine. [...] > Note that it looks like Lp is missing, too. Here is what i have done in OpenBSD to fix this. Do you want that committed to bsd.lv as well? Apart from that, and from .TS, we are now back in full sync. Yours, Ingo --- /usr/mdocml/mdoc_validate.c Sat Dec 18 12:03:18 2010 +++ ./mdoc_validate.c Tue Dec 21 16:57:31 2010 @@ -1570,12 +1574,14 @@ post_bl(POST_ARGS) for (n = mdoc->last->child; n; n = n->next) { switch (n->tok) { - case (MDOC_It): - continue; - case (MDOC_Sm): + case (MDOC_Lp): /* FALLTHROUGH */ case (MDOC_Pp): mdoc_nmsg(mdoc, n, MANDOCERR_CHILD); + /* FALLTHROUGH */ + case (MDOC_It): + /* FALLTHROUGH */ + case (MDOC_Sm): continue; default: break; -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv