From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailout.scc.kit.edu (mailout.scc.kit.edu [129.13.185.202]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id qAGMuWSj025359 for ; Fri, 16 Nov 2012 17:56:32 -0500 (EST) Received: from hekate.usta.de (asta-nat.asta.uni-karlsruhe.de [172.22.63.82]) by scc-mailout-02.scc.kit.edu with esmtp (Exim 4.72 #1) id 1TZUpq-0006mw-Hv; Fri, 16 Nov 2012 23:56:30 +0100 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.77) (envelope-from ) id 1TZUpr-0008CG-DP; Fri, 16 Nov 2012 23:56:31 +0100 Received: from iris.usta.de ([172.24.96.5] helo=usta.de) by donnerwolke.usta.de with esmtp (Exim 4.72) (envelope-from ) id 1TZUpr-0000PX-Bx; Fri, 16 Nov 2012 23:56:31 +0100 Received: from schwarze by usta.de with local (Exim 4.77) (envelope-from ) id 1TZUpr-0003Pr-0K; Fri, 16 Nov 2012 23:56:31 +0100 Date: Fri, 16 Nov 2012 23:56:30 +0100 From: Ingo Schwarze To: Nicolas Joly Cc: discuss@mdocml.bsd.lv Subject: Re: mandoc/nroff small spacing difference for .Bd -offset 0 Message-ID: <20121116225630.GE18695@iris.usta.de> References: <20121016180503.GA5777@lynche.sis.pasteur.fr> X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121016180503.GA5777@lynche.sis.pasteur.fr> User-Agent: Mutt/1.5.21 (2010-09-15) Hi Nicolas, Nicolas Joly wrote on Tue, Oct 16, 2012 at 08:05:03PM +0200: > Still checking the NetBSD man pages i noticed a minor difference for > display blocks with an `-offset 0' argument. That's sloppy. The -offset argument is supposed to take a scaling width argument, not a bare number. When the unit is omitted from scaling width numbers, according to my understanding, what unit is assumed depends on the context, and i have no idea what the default unit for .Bd -offset is supposed to be. According to my testing, here is what groff does: -offset followed by a single digit (-offset 0 ... -offset 9) is handled as -offset 0n -offset followed by multiple digits (-offset 10 ... -offset 9999 ...) uses the string length of the number, e.g. -offset 123 is the same as -offset 3n That doesn't make a lot of sense to me. I'm not thrilled by the idea of spending my time to make mandoc (bug-?)compatible with groff in this respect. Or can anybody provide a better explanation of what -offset 123 is supposed to mean? Somewhat confused, Ingo -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv