aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit71cd7398da2aa89d10c8268134292464d0dd22d2 (patch)
treea12a31807f3bdd841fe1280d6ce0c8d4a6008276 /man_validate.c
parentc8ecda0e5cf2aaebd59fa2863d609c4f50215656 (diff)
downloadmandoc-71cd7398da2aa89d10c8268134292464d0dd22d2.tar.gz
mandoc-71cd7398da2aa89d10c8268134292464d0dd22d2.tar.zst
mandoc-71cd7398da2aa89d10c8268134292464d0dd22d2.zip
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/man_validate.c b/man_validate.c
index d13e5e04..00ad2ef9 100644
--- a/man_validate.c
+++ b/man_validate.c
@@ -1,4 +1,4 @@
-/* $Id: man_validate.c,v 1.41 2010/05/17 22:11:42 kristaps Exp $ */
+/* $Id: man_validate.c,v 1.42 2010/05/25 12:44:53 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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);