summaryrefslogtreecommitdiffstats
path: root/mdoc_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 /mdoc_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 'mdoc_validate.c')
-rw-r--r--mdoc_validate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index a4852804..7527cfb0 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -463,7 +463,7 @@ check_text(struct mdoc *mdoc, int line, int pos, const char *p)
if ( ! (MDOC_LITERAL & mdoc->flags))
if ( ! mdoc_pmsg(mdoc, line, pos, MANDOCERR_BADCHAR))
return(0);
- } else if ( ! isprint((u_char)*p))
+ } else if ( ! isprint((u_char)*p) && ASCII_HYPH != *p)
if ( ! mdoc_pmsg(mdoc, line, pos, MANDOCERR_BADCHAR))
return(0);