From 71cd7398da2aa89d10c8268134292464d0dd22d2 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 25 May 2010 12:44:53 +0000 Subject: 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). --- man_validate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'man_validate.c') 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 * @@ -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); -- cgit v1.2.3-56-ge451