diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-01 17:27:44 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-01 17:27:44 +0000 |
commit | 85ebc4c346a67252f8e7e3a1c4326920984c01e7 (patch) | |
tree | eb357aa2d9480946318b9ecccf29e86489a2862c /man_validate.c | |
parent | 120073f11aa98a6e6187a5bd14df4505cfe2c087 (diff) | |
download | mandoc-85ebc4c346a67252f8e7e3a1c4326920984c01e7.tar.gz |
mention requests and macros in more messages
Diffstat (limited to 'man_validate.c')
-rw-r--r-- | man_validate.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/man_validate.c b/man_validate.c index 877b7e9d..535f4006 100644 --- a/man_validate.c +++ b/man_validate.c @@ -404,10 +404,10 @@ post_TH(CHKARGS) /* Only warn about this once... */ if (isalpha((unsigned char)*p) && ! isupper((unsigned char)*p)) { - mandoc_msg(MANDOCERR_TITLE_CASE, + mandoc_vmsg(MANDOCERR_TITLE_CASE, man->parse, n->line, n->pos + (p - n->string), - n->string); + "TH %s", n->string); break; } } @@ -435,7 +435,9 @@ post_TH(CHKARGS) n->line, n->pos); } else { man->meta.date = mandoc_strdup(""); - man_nmsg(man, n ? n : nb, MANDOCERR_DATE_MISSING); + mandoc_msg(MANDOCERR_DATE_MISSING, man->parse, + n ? n->line : nb->line, + n ? n->pos : nb->pos, "TH"); } /* TITLE MSEC DATE ->SOURCE<- VOL */ @@ -465,7 +467,8 @@ post_nf(CHKARGS) { if (MAN_LITERAL & man->flags) - man_nmsg(man, n, MANDOCERR_NF_SKIP); + mandoc_msg(MANDOCERR_NF_SKIP, man->parse, + n->line, n->pos, "nf"); man->flags |= MAN_LITERAL; return(1); @@ -476,7 +479,8 @@ post_fi(CHKARGS) { if ( ! (MAN_LITERAL & man->flags)) - man_nmsg(man, n, MANDOCERR_FI_SKIP); + mandoc_msg(MANDOCERR_FI_SKIP, man->parse, + n->line, n->pos, "fi"); man->flags &= ~MAN_LITERAL; return(1); |