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 o76IDeGh015498 for ; Fri, 6 Aug 2010 14:13:40 -0400 (EDT) Received: from smtp-2.sys.kth.se (localhost [127.0.0.1]) by smtp-2.sys.kth.se (Postfix) with ESMTP id 080A314D79E for ; Fri, 6 Aug 2010 20:13:35 +0200 (CEST) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-2.sys.kth.se ([127.0.0.1]) by smtp-2.sys.kth.se (smtp-2.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id gHLlvE9+-m7p for ; Fri, 6 Aug 2010 20:13:23 +0200 (CEST) X-KTH-Auth: kristaps [85.8.60.193] X-KTH-mail-from: kristaps@bsd.lv X-KTH-rcpt-to: discuss@mdocml.bsd.lv Received: from lappy.bsd.lv (h85-8-60-193.dynamic.se.alltele.net [85.8.60.193]) by smtp-2.sys.kth.se (Postfix) with ESMTP id C6C4A14C137 for ; Fri, 6 Aug 2010 20:13:23 +0200 (CEST) Message-ID: <4C5C50C2.7080304@bsd.lv> Date: Fri, 06 Aug 2010 20:13:22 +0200 From: Kristaps Dzonsons User-Agent: Thunderbird 2.0.0.16 (X11/20080812) X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 To: discuss@mdocml.bsd.lv Subject: Re: -column issue References: <20100806070614.GD2107@bramka.kerhand.co.uk> <4C5C417B.4050209@bsd.lv> <20100806175200.GB946@bramka.kerhand.co.uk> In-Reply-To: <20100806175200.GB946@bramka.kerhand.co.uk> Content-Type: multipart/mixed; boundary="------------080300070205000100090209" This is a multi-part message in MIME format. --------------080300070205000100090209 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Jason McIntyre wrote: > On Fri, Aug 06, 2010 at 07:08:11PM +0200, Kristaps Dzonsons wrote: >>> hi. there's a formatting issue for -column lists. the best example i can >>> find is in openbsd's sysctl.3 (it's riddled with these): >>> >>> .Bl -column "Second level nameXXXXXX" integerXXX -offset indent >>> .It Sy Second level name Type Changeable >>> .It Dv FS_POSIX_SETUID No " integer yes" >>> .El >> UGH. This is gross. Why why why didn't they do: >> >> 46 .Bl -column "Second level nameXXXXXX" integerXXX -offset indent >> 47 .It Sy Second level name Type Changeable >> 48 .It Dv FS_POSIX_SETUID No integer yes >> >> (With tabs between columns.) It renders just fine in both mandoc and >> new/old groff. >> > > "they" didn;t do it, presumably, because whichever poor bastard wrote it > probably just jiggled the list until it formatted correctly. that is > roughly how one goes about constructing a -column list. > > anyway, are you sure that your solution is correct? look carefully at how > groff formats it: > > Second level name Type Changeable > FS_POSIX_SETUID No integer yes > > i.e. it does not parse "No". mandoc does not display the "No". same if i > move the "No" into the next column (which seems more logical). Jason, I can't replicate this. Enclosed is the input (so as to preserve the tabbing...). I tested with OpenBSD and a new groff. Do you still see this behaviour? Kristaps --------------080300070205000100090209 Content-Type: text/plain; name="foo.1" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="foo.1" .Dd $Mdocdate$ .Dt FOO 1 .Os .Sh NAME .Nm foo .Nd bar .Sh DESCRIPTION .Bl -column "Second level nameXXXXXX" integerXXX -offset indent .It Sy Second level name Type Changeable .It Dv FS_POSIX_SETUID No integer yes .El --------------080300070205000100090209-- -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv