From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-interne2.pasteur.fr (mail-interne2.pasteur.fr [157.99.64.81]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id qAJDbQ0X014861 for ; Mon, 19 Nov 2012 08:37:26 -0500 (EST) Received: from langres.sis.pasteur.fr (localhost [127.0.0.1]) by mail-interne2.pasteur.fr (Postfix) with ESMTP id 8FFD7E0451; Mon, 19 Nov 2012 14:37:21 +0100 (CET) X-Virus-Scanned: amavisd-new at pasteur.fr Received: from lynche.sis.pasteur.fr (lynche.sis.pasteur.fr [157.99.60.35]) by mail-interne2.pasteur.fr (Postfix) with ESMTP id 6A63BE0434; Mon, 19 Nov 2012 14:37:21 +0100 (CET) Received: by lynche.sis.pasteur.fr (Postfix, from userid 1000) id 1C06DBCA24; Mon, 19 Nov 2012 14:37:35 +0100 (CET) Date: Mon, 19 Nov 2012 14:37:35 +0100 From: Nicolas Joly To: discuss@mdocml.bsd.lv Cc: Nicolas Joly Subject: Re: mandoc/nroff small spacing difference for .Bd -offset 0 Message-ID: <20121119133735.GA21562@lynche.sis.pasteur.fr> References: <20121016180503.GA5777@lynche.sis.pasteur.fr> <20121116225630.GE18695@iris.usta.de> 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: <20121116225630.GE18695@iris.usta.de> User-Agent: Mutt/1.4.2.3i Organization: Institut Pasteur, Paris. On Fri, Nov 16, 2012 at 11:56:30PM +0100, Ingo Schwarze wrote: > Hi Nicolas, Hi Ingo, > 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. Fine with me. This just needs to be documented somewhere ... -- Nicolas Joly Biology IT Center Institut Pasteur, Paris. -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv