From: Nicolas Joly <njoly@pasteur.fr>
To: discuss@mdocml.bsd.lv
Cc: Nicolas Joly <njoly@pasteur.fr>
Subject: Re: mandoc/nroff small spacing difference for .Bd -offset 0
Date: Mon, 19 Nov 2012 14:37:35 +0100 [thread overview]
Message-ID: <20121119133735.GA21562@lynche.sis.pasteur.fr> (raw)
In-Reply-To: <20121116225630.GE18695@iris.usta.de>
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
prev parent reply other threads:[~2012-11-19 13:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-16 18:05 Nicolas Joly
2012-11-16 22:56 ` Ingo Schwarze
2012-11-19 13:37 ` Nicolas Joly [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121119133735.GA21562@lynche.sis.pasteur.fr \
--to=njoly@pasteur.fr \
--cc=discuss@mdocml.bsd.lv \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).