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 | 89acde071c972b5d612dcc42dd85d1d8ae6c3597 (patch) | |
tree | 2b7901c521c9c7321f8cd498762fc7079daf2955 | |
parent | 00b1408577108687d502b7b56de8e3399986a349 (diff) | |
download | mandoc-89acde071c972b5d612dcc42dd85d1d8ae6c3597.tar.gz mandoc-89acde071c972b5d612dcc42dd85d1d8ae6c3597.tar.zst mandoc-89acde071c972b5d612dcc42dd85d1d8ae6c3597.zip |
Make check for case a little more intuitive (suggested by joerg@).
-rw-r--r-- | mdoc_validate.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index b5d29271..5dbfc6a8 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_validate.c,v 1.85 2010/05/30 11:00:53 kristaps Exp $ */ +/* $Id: mdoc_validate.c,v 1.86 2010/05/30 11:47:44 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -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); |