From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-2.sys.kth.se (smtp-2.sys.kth.se [130.237.32.160]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id o53F9dku008481 for ; Thu, 3 Jun 2010 11:09:40 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by smtp-2.sys.kth.se (Postfix) with ESMTP id 7AE2D14F0F1 for ; Thu, 3 Jun 2010 17:09:34 +0200 (CEST) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-2.sys.kth.se ([127.0.0.1]) by localhost (smtp-2.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id FuycHy3UEuY9 for ; Thu, 3 Jun 2010 17:09:33 +0200 (CEST) X-KTH-Auth: kristaps [130.237.221.96] X-KTH-mail-from: kristaps@bsd.lv X-KTH-rcpt-to: tech@mdocml.bsd.lv Received: from [130.237.221.96] (ctime.pdc.kth.se [130.237.221.96]) by smtp-2.sys.kth.se (Postfix) with ESMTP id B8C1014C144 for ; Thu, 3 Jun 2010 17:09:33 +0200 (CEST) Message-ID: <4C07C7E7.60800@bsd.lv> Date: Thu, 03 Jun 2010 17:19:03 +0200 From: Kristaps Dzonsons User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707) X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 To: "tech@mdocml.bsd.lv" Subject: Re: Parsing of .Bl arguments stops prematurely References: <20100601153811.GP91631@acme.spoerlein.net> In-Reply-To: <20100601153811.GP91631@acme.spoerlein.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit > one more buglet that I want to get off my chest: > > .Bl -column -compact "Microcom Travelcard" "MALO111" "CardBus" "a/b/g" -offset 6n > .It Em Card Ta Em Chip Ta Em Bus Ta Em Standard > .It Netgear WG311v3 88W8335 PCI b/g > .It Tenda TWL542P 88W8335 PCI b/g > .It U-Khan UW-2054i 88W8335 PCI b/g > .El > > mdocml will interpret -offset and 6n as additional column width > arguments and then complain that there are only 4 columns, but it wanted > to see 6. Naturally, the list is also *not* offset by 6n. > > This, on the other hand, renders just like groff does (ie. offset by 6n) > and also no longer complains while in lint mode. > > .Bl -column -offset 6n -compact "Microcom Travelcard" "MALO111" "CardBus" "a/b/g" > .It Em Card Ta Em Chip Ta Em Bus Ta Em Standard > .It Netgear WG311v3 88W8335 PCI b/g > .It Tenda TWL542P 88W8335 PCI b/g > .It U-Khan UW-2054i 88W8335 PCI b/g > .El > > > If the previous usage won't be supported, that's fine by me I just want > to know so I can fix the FreeBSD manpage corpus the right way ... Ulrich, This is just bad -mdoc: mdoc.samples documents either the "old way" (`Bl -column xxx yyy zzz -width...') or the "new way" (`Bl -column -width... xxx yyy zz'). mandoc supports both of these (it internally re-writes them into the old way). I'd really rather not support this syntax as it would mean jumping between "args" and "argv" handling. This would require a near-complete overhaul to mdoc_macro.c. Ugh. I am, however, pretty surprised groff is able to handle it. Do you see this happening often? Kristaps -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv