summaryrefslogtreecommitdiffstats
path: root/man_validate.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-07-01 22:37:15 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-07-01 22:37:15 +0000
commit86806389168051f6ba486c442c442708d5e0fa73 (patch)
treefa81b7694359c83543eac5fab8d4ea9300896de1 /man_validate.c
parent9e7d8bcb8352801ba998920b086e93c8dcad70b3 (diff)
downloadmandoc-86806389168051f6ba486c442c442708d5e0fa73.tar.gz
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.
Diffstat (limited to 'man_validate.c')
-rw-r--r--man_validate.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/man_validate.c b/man_validate.c
index 6ebf6cea..ad01423f 100644
--- a/man_validate.c
+++ b/man_validate.c
@@ -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;
}
}