diff options
-rw-r--r-- | man_validate.c | 5 | ||||
-rw-r--r-- | mdoc_validate.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/man_validate.c b/man_validate.c index 1ad10be3..57f8be9f 100644 --- a/man_validate.c +++ b/man_validate.c @@ -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 81fd7906..32dd2339 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -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)) |