From c9939e9971e983553a2f3f786d124427b6d4e16e Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 1 Jul 2014 22:37:15 +0000 Subject: Clean up the warnings related to document structure. * Hierarchical naming of the related enum mandocerr items. * Mention the offending macro, section title, or string. While here, improve some wordings: * Descriptive instead of imperative style. * Uniform style for "missing" and "skipping". * Where applicable, mention the fallback used. --- man_validate.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'man_validate.c') diff --git a/man_validate.c b/man_validate.c index 8e786842..579e91ff 100644 --- a/man_validate.c +++ b/man_validate.c @@ -1,4 +1,4 @@ -/* $Id: man_validate.c,v 1.93 2014/06/20 23:02:31 schwarze Exp $ */ +/* $Id: man_validate.c,v 1.94 2014/07/01 22:37:15 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2012, 2013, 2014 Ingo Schwarze @@ -414,7 +414,10 @@ post_TH(CHKARGS) /* Only warn about this once... */ if (isalpha((unsigned char)*p) && ! isupper((unsigned char)*p)) { - man_nmsg(man, n, MANDOCERR_TITLE_CASE); + mandoc_msg(MANDOCERR_TITLE_CASE, + man->parse, n->line, + n->pos + (p - n->string), + n->string); break; } } -- cgit v1.2.3-56-ge451