diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-05-30 11:47:44 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-05-30 11:47:44 +0000 |
commit | 1fb9bbde9209153b72e205e9961476641f5d87ce (patch) | |
tree | b054bd10a51659bb3b2dd3d8cd602b298212723c | |
parent | d767ea8dca6d98f405dc7525a38d5a6d61b3652f (diff) | |
download | mandoc-1fb9bbde9209153b72e205e9961476641f5d87ce.tar.gz |
Make check for case a little more intuitive (suggested by joerg@).
-rw-r--r-- | mdoc_validate.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index 30d7ea8d..ce90c0f3 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -747,9 +747,7 @@ post_dt(POST_ARGS) if (NULL != (nn = mdoc->last->child)) for (p = nn->string; *p; p++) { - if ( ! isalpha((u_char)*p)) - continue; - if (isupper((u_char)*p)) + if (toupper((u_char)*p) == *p) continue; if ( ! mdoc_nmsg(mdoc, nn, MANDOCERR_UPPERCASE)) return(0); |