From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-1.sys.kth.se (smtp-1.sys.kth.se [130.237.32.175]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p0GMvJod007622 for ; Sun, 16 Jan 2011 17:57:21 -0500 (EST) Received: from smtp-1.sys.kth.se (localhost [127.0.0.1]) by smtp-1.sys.kth.se (Postfix) with ESMTP id 2540D155AEA; Sun, 16 Jan 2011 23:57:14 +0100 (CET) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-1.sys.kth.se ([127.0.0.1]) by smtp-1.sys.kth.se (smtp-1.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id B4FbRwmfv4wc; Sun, 16 Jan 2011 23:57:12 +0100 (CET) X-KTH-Auth: kristaps [85.8.61.143] X-KTH-mail-from: kristaps@bsd.lv Received: from h85-8-61-143.dynamic.se.alltele.net (h85-8-61-143.dynamic.se.alltele.net [85.8.61.143]) by smtp-1.sys.kth.se (Postfix) with ESMTP id 06A561557D3; Sun, 16 Jan 2011 23:57:11 +0100 (CET) Message-ID: <4D3377C6.2070501@bsd.lv> Date: Sun, 16 Jan 2011 23:57:10 +0100 From: Kristaps Dzonsons User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 To: tech@mdocml.bsd.lv CC: Ingo Schwarze Subject: Re: reduce MANDOCERR_SYNTARGCOUNT in libman References: <20110115160836.GA1833@britannica.bec.de> <20110116223431.GB11566@iris.usta.de> In-Reply-To: <20110116223431.GB11566@iris.usta.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > recently, Joerg observed that in libman, .fi with arguments causes a fatal > error - and i say, for no good reason. The same holds for all the other > argument count checking in libman. > > Thus, here is a patch to downgrade all those fatal MANDOCERR_SYNTARGCOUNT > errors to non-fatal MANDOCERR_ARGCOUNT errors. > > The affected macros are: > > .br .sp .nf .fi .na with arguments - now skipping the arguments > .TH lacking arguments - using empty strings instead like groff > .TH with excessive arguments - skipping those > > All these edge cases now work for me. > > OK? Ok Kristaps! Thanks, Kristaps -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv