From: Ingo Schwarze <schwarze@usta.de>
To: Nicolas Joly <njoly@pasteur.fr>
Cc: discuss@mdocml.bsd.lv
Subject: Re: mandoc/nroff small spacing difference for .Bd -offset 0
Date: Fri, 16 Nov 2012 23:56:30 +0100 [thread overview]
Message-ID: <20121116225630.GE18695@iris.usta.de> (raw)
In-Reply-To: <20121016180503.GA5777@lynche.sis.pasteur.fr>
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
next prev parent reply other threads:[~2012-11-16 22:56 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 [this message]
2012-11-19 13:37 ` Nicolas Joly
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=20121116225630.GE18695@iris.usta.de \
--to=schwarze@usta.de \
--cc=discuss@mdocml.bsd.lv \
--cc=njoly@pasteur.fr \
/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).