[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CHECKSTYLE: Report consecutive .?P (paragraph macros)
From: |
Alejandro Colomar (man-pages) |
Subject: |
Re: CHECKSTYLE: Report consecutive .?P (paragraph macros) |
Date: |
Wed, 2 Feb 2022 02:54:01 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 |
Hi Bjarni,
On 2/2/22 01:32, Bjarni Ingi Gislason wrote:
> A usable tool is "mandoc -T lint". Irrelevant output is just weeded
> out with a filter.
I like that one too. It catches .IP followed by .PP. I'll add it; I'll
use both tools. And for man-pages(7) too. I'll CC you both when I add
it to the man-pages(7) Makefile, in case you may want to comment.
BTW, to whoever it may concern, when you release groff-1.23 (you know,
maybe tomorrow, maybe next decade :), tell mandoc(1) people to add .MR ;).
Thanks!
Alex
---
$ mandoc -T lint share/man/man6/chess-init.6
mandoc: share/man/man6/chess-init.6:10:2: ERROR: skipping unknown macro:
.MR chess\-init 6
mandoc: share/man/man6/chess-init.6:12:2: WARNING: skipping paragraph
macro: IP empty
--
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/