From: Kristaps Dzonsons Date: Mon, 28 Jun 2010 14:39:17 +0000 (+0000) Subject: Notes: this must be done later. \b in the input will cause havoc. X-Git-Tag: VERSION_1_10_3~6 X-Git-Url: https://git.cameronkatri.com/mandoc.git/commitdiff_plain/73266d633e50a3e89302fd69beaabdfacbe14a5d Notes: this must be done later. \b in the input will cause havoc. --- 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 * @@ -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)) diff --git a/mdoc_validate.c b/mdoc_validate.c index e5083570..48b0c40c 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_validate.c,v 1.101 2010/06/27 17:53:27 schwarze Exp $ */ +/* $Id: mdoc_validate.c,v 1.102 2010/06/28 14:39:17 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -458,6 +458,11 @@ check_text(struct mdoc *mdoc, int line, int pos, char *p) { int c; + /* + * FIXME: we absolutely cannot let \b get through or it will + * destroy some assumptions in terms of format. + */ + for ( ; *p; p++, pos++) { if ('\t' == *p) { if ( ! (MDOC_LITERAL & mdoc->flags))