CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]        2018/12/03 19:53:45

Modified files:
        usr.bin/mandoc : libmdoc.h man_validate.c mdoc.c mdoc_macro.c 
                         mdoc_validate.c roff.c roff_int.h 
                         roff_validate.c 
        regress/usr.bin/mandoc/man/PP: empty.out_lint 
        regress/usr.bin/mandoc/man/blank: afterSH.out_lint 
                                          afterSS.out_lint line.out_lint 
        regress/usr.bin/mandoc/mdoc/Sh: parborder.out_lint 
        regress/usr.bin/mandoc/mdoc/blank: line.out_lint 
        regress/usr.bin/mandoc/roff/args: roff.out_lint 
        regress/usr.bin/mandoc/roff/cond: if.out_lint 

Log message:
Clean up the validation of .Pp, .PP, .sp, and .br.  Make sure all
combinations are handled, and are handled in a systematic manner.
This resolves some erratic duplicate handling, handles a number of
missing cases, and improves diagnostics in various respects.

Move validation of .br and .sp to the roff validation module
rather than doing that twice in the mdoc and man validation modules.
Move the node relinking function to the roff library where it belongs.

In validation functions, only look at the node itself, at previous
nodes, and at descendants, not at following nodes or ancestors,
such that only nodes are inspected which are already validated.

Reply via email to