aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man_validate.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-06-28 14:39:17 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-06-28 14:39:17 +0000
commit73266d633e50a3e89302fd69beaabdfacbe14a5d (patch)
treef136cf51c61453d217570ce08111791770272fb3 /man_validate.c
parentcb73bc471572c6c06fc8831b517b5c4488984b57 (diff)
downloadmandoc-73266d633e50a3e89302fd69beaabdfacbe14a5d.tar.gz
mandoc-73266d633e50a3e89302fd69beaabdfacbe14a5d.tar.zst
mandoc-73266d633e50a3e89302fd69beaabdfacbe14a5d.zip
Notes: this must be done later. \b in the input will cause havoc.
Diffstat (limited to 'man_validate.c')
-rw-r--r--man_validate.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/man_validate.c b/man_validate.c
index fb7056fe..48469495 100644
--- a/man_validate.c
+++ b/man_validate.c
@@ -1,4 +1,4 @@
-/* $Id: man_validate.c,v 1.44 2010/06/19 20:46:28 kristaps Exp $ */
+/* $Id: man_validate.c,v 1.45 2010/06/28 14:39:17 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -223,6 +223,11 @@ check_text(CHKARGS)
return(c);
}
+ /*
+ * FIXME: we absolutely cannot let \b get through or it
+ * will destroy some assumptions in terms of format.
+ */
+
if ('\t' == *p || isprint((u_char)*p) || ASCII_HYPH == *p)
continue;
if ( ! man_pmsg(m, n->line, pos, MANDOCERR_BADCHAR))