Follow-up Comment #9, bug #62042 (project groff):
Your snippet is not working for me:
$ ll etc/groff/tmac/
total 0
lrwxrwxrwx 1 user user 35 Feb 23 17:30 checkstyle.tmac ->
../../../share/tmac/checkstyle.tmac
lrwxrwxrwx 1 user user 31 Feb 4 14:45 deadly.tmac ->
../../../share/tmac/deadly.tmac
$ cat etc/groff/tmac/checkstyle.tmac
.de an-blank-line-trap
. sp
..
.
.de an-leading-spaces-trap
. nop \h'\\n[lss]u'\c
..
$ cat etc/groff/tmac/deadly.tmac
.am an-style-warn
. ds LANDMINE\"
..
.de end-of-input-macro
. if d LANDMINE .ab found style problems; aborting
..
.em end-of-input-macro
$ make lint-groff V=1
GROFF CHECKSTYLE tmp/share/man/man7/chessutils.7.cks.touch
groff -z -man -rCHECKSTYLE=3 -M ./etc/groff/tmac -m checkstyle -m deadly
share/man/man7/chessutils.7
an.tmac:share/man/man7/chessutils.7:9: style: 1 leading space(s) on input
line
found style problems; aborting
make: *** [Makefile:253: tmp/share/man/man7/chessutils.7.cks.touch] Error 1
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62042>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/