Re: Sh FILES without Pa

2017-11-09 Thread Jason McIntyre
On Thu, Nov 09, 2017 at 12:36:29PM +0100, Jan Stary wrote: > Hi Ingo, > > currently, mandoc DIAGNOSTICS recognizes an AUTHORS section without An. > Would it be similarly useful to recognize a FILES section without Pa? > personally this is one warning that i don;t like from mandoc. it flags up

Re: Sh FILES without Pa

2017-11-09 Thread Jan Stary
On Nov 09 12:36:29, h...@stare.cz wrote: > Question: > > static int > child_an(const struct roff_node *n) > { > for (n = n->child; n != NULL; n = n->next) > if ((n->tok == MDOC_An && n->child != NULL) || child_an(n)) > return 1; > return 0; > } > >

Sh FILES without Pa

2017-11-09 Thread Jan Stary
Hi Ingo, currently, mandoc DIAGNOSTICS recognizes an AUTHORS section without An. Would it be similarly useful to recognize a FILES section without Pa? I left the empty lines after the opening { in case they are intended, just like child_an() and post_sh_authors() have them, but feel free to