groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff] [PATCH] Teach nroff about warning options


From: Colin Watson
Subject: [Groff] [PATCH] Teach nroff about warning options
Date: Sat, 24 Nov 2007 10:44:26 +0000
User-agent: Mutt/1.5.13 (2006-08-11)

There's been a discussion recently in Debian about having our
"lint"-like sanity-checking tools for packages enable some groff warning
options to catch common mistakes in manual pages. There'll probably be
quite a few false positives at first, but I think at least -wmac is
worth enabling in this context.

Ivan Shmakov sent me a patch to create a MANROFFOPT environment variable
which lets you say something like 'MANROFFOPT=-wmac man groff'. I like
this and will apply it to man-db. However, unfortunately, groff's nroff
wrapper doesn't recognise the -w and -W options and treats them as an
error. Could this be fixed? I've attached a patch which adds support for
them.

There are a couple of comments in the nroff script and in its manual
page that note that warnings are suppressed. Does this mean groff
warnings? I agree that this is an appropriate default, of course, but
it's good to be able to turn them on.

Thanks,

-- 
Colin Watson                                       address@hidden

Attachment: nroff-warnings.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]