[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #62042] [man]: want designed, documented CHECKSTYLE feature
From: |
G. Branden Robinson |
Subject: |
[bug #62042] [man]: want designed, documented CHECKSTYLE feature |
Date: |
Fri, 20 May 2022 07:14:35 -0400 (EDT) |
Follow-up Comment #12, bug #62042 (project groff):
Thanks for following up, Alex. It was my fault. I misspelled the name of the
leading space(s) macro I offered you in comment #8.
Also, in case you _don't_ want to throw away the output with `-z`, it is
helpful to append to the existing end-of-input macro used by the man(7)
package instead of replacing it. I overlooked this in my original proposed
solution.
Here's a transcript of things working, I think.
$ cat EXPERIMENTS/landmine.man
.TH landmine 1 2022-05-20 "groff test suite"
.SH Name
landmine \- blow up
.SH Description
Here's a paragraph with a leading space.
And this is a new paragraph,
because that was a blank line.
$ cat EXPERIMENTS/deadly.tmac
$ cat EXPERIMENTS/deadly.tmac
.am an-style-warn
. ds LANDMINE\"
..
.de end-of-input-macro
. if d LANDMINE .ab found style problems; aborting
..
.am an-end
. end-of-input-macro
..
$ cat EXPERIMENTS/checkstyle-alx.tmac
.de1 an-blank-line-trap
. sp
..
.
.de1 an-leading-space-trap
. nop \h'\\n[lss]u'\c
..
$ ./build/test-groff -T utf8 -z -man -rCHECKSTYLE=3 -M EXPERIMENTS -m
checkstyle-alx -m deadly EXPERIMENTS/landmine.man
$ ./build/test-groff -T utf8 -man -rCHECKSTYLE=3 -M EXPERIMENTS -m
checkstyle-alx -m deadly EXPERIMENTS/landmine.man
landmine(1) General Commands Manual
landmine(1)
Name
landmine - blow up
Description
Here’s a paragraph with a leading space.
And this is a new paragraph, because that was a blank line.
groff test suite 2022‐05‐20
landmine(1)
[comment #11 comment #11:]
> Hi Branden,
>
> [comment #10 comment #10:]
> > I am confused. This appears to be working exactly as I intended. Did I
misunderstand what you wanted?
>
> Yup, check <checkstyle.tmac>; it's supposed to cancel the effects of
<deadly.tmac> for leading spaces and blank lines, isn't it?
>
> But I still die when I step on the landmine :(
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62042>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/