summaryrefslogtreecommitdiffstats
path: root/man_validate.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-25 12:44:53 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-25 12:44:53 +0000
commit2b24cf82e4bfafe4a1ed27ccc831c8f46f317fe1 (patch)
tree70fcfc82eb2a2a618fa7fb3ae7f502d79dd4525e /man_validate.c
parentc21b0099041cd45b4ceafb3d8c1021ea8f04e0a2 (diff)
downloadmandoc-2b24cf82e4bfafe4a1ed27ccc831c8f46f317fe1.tar.gz
Smarten BADCHAR check to allow ASCII_HYPH.
Fix index.sgml not to puke (the relevant section will be re-written for the release anyway, but I hate seeing errors).
Diffstat (limited to 'man_validate.c')
-rw-r--r--man_validate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/man_validate.c b/man_validate.c
index c568e4cb..362b0da9 100644
--- a/man_validate.c
+++ b/man_validate.c
@@ -223,7 +223,7 @@ check_text(CHKARGS)
return(c);
}
- if ('\t' == *p || isprint((u_char)*p))
+ if ('\t' == *p || isprint((u_char)*p) || ASCII_HYPH == *p)
continue;
if ( ! man_pmsg(m, n->line, pos, MANDOCERR_BADCHAR))
return(0);