From: "Anthony J. Bentley" <anthony@cathet.us>
To: discuss@mdocml.bsd.lv
Cc: josh@elsasser.org, james@calminferno.net
Subject: .nr weirdness
Date: Mon, 9 Dec 2013 18:36:57 -0700 [thread overview]
Message-ID: <CAFRrxymUj=-WTw+iGBS3dzFY8XxTU0wkBrSvg9LeU181=1dXMw@mail.gmail.com> (raw)
From sbcl(1):
.nr step 1 1
.IP \n[step]. 3
Debugger is disabled, if requested.
.IP \n+[step].
Any system initialization file is loaded, unless prohibited.
.IP \n+[step].
Any user initialization file is loaded, unless prohibited.
.IP \n+[step].
\-\-eval and \-\-load options are processed in the order given.
Here is the diff between mandoc and groff output:
- -1.
- Debugger is disabled, if requested.
+ 1. Debugger is disabled, if requested.
- 0[step].
- Any system initialization file is loaded, unless prohibited.
+ 2. Any system initialization file is loaded, unless prohibited.
- 0[step].
- Any user initialization file is loaded, unless prohibited.
+ 3. Any user initialization file is loaded, unless prohibited.
- 0[step].
- --eval and --load options are processed in the order given.
+ 4. --eval and --load options are processed in the order given.
Here's my superficial analysis of the (distinct?) problems here:
- step is initialized to -1 instead of 1. This seems to be due to the
extra argument in ".nr step 1 1" (roff(7) only describes .nr as taking
two arguments, and if I take off the last one, it gets initialized
properly).
- step should be incremented but it isn't. From quick testing it seems
that the printed value of "\n+[step]" is always 0 no matter what is in
step.
- In mandoc, there's a newline after the ".IP \n+[step]." gets output.
Groff doesn't print one.
That's all for now...
--
Anthony J. Bentley
--
To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv
next reply other threads:[~2013-12-10 1:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-10 1:36 Anthony J. Bentley [this message]
2013-12-15 21:54 ` Ingo Schwarze
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='CAFRrxymUj=-WTw+iGBS3dzFY8XxTU0wkBrSvg9LeU181=1dXMw@mail.gmail.com' \
--to=anthony@cathet.us \
--cc=discuss@mdocml.bsd.lv \
--cc=james@calminferno.net \
--cc=josh@elsasser.org \
/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).