CVSROOT: /cvs Module name: src Changes by: schwa...@cvs.openbsd.org 2014/06/20 16:58:41
Modified files: usr.bin/mandoc : main.c man.h man_term.c man_validate.c mandoc.1 mandoc.h mdoc_validate.c read.c regress/usr.bin/mandoc/man/TH: Makefile emptydate.out_lint noTH.out_lint twoargs.out_lint regress/usr.bin/mandoc/mdoc/Dt: Makefile Added files: regress/usr.bin/mandoc/man/TH: nobody.in nobody.out_ascii nobody.out_lint regress/usr.bin/mandoc/mdoc/Dt: befSh.in befSh.out_lint nobody.in nobody.out_ascii nobody.out_lint Log message: As suggested by jmc@, only include line and column numbers into messages when they are meaningful, to avoid confusing stuff like this: $ mandoc /dev/null mandoc: /dev/null:0:1: FATAL: not a manual Instead, just say: mandoc: /dev/null: FATAL: not a manual Another example this applies to is documents having a prologue, but lacking a body. Do not throw a FATAL error for these; instead, issue a warning and show the empty document, in the man(7) case with the same amount of blank lines as groff does. Also downgrade mdoc(7) documents having content before the first .Sh from FATAL to WARNING.