X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/1aea6f050761f70bdfd8647816b23774b971050c..8ee4ce8a2dfd617e29674aa4e0718c32e1ad02c5:/man_validate.c?ds=inline diff --git a/man_validate.c b/man_validate.c index 8d04e2ea..48469495 100644 --- a/man_validate.c +++ b/man_validate.c @@ -1,6 +1,6 @@ -/* $Id: man_validate.c,v 1.43 2010/06/09 19:22:56 kristaps Exp $ */ +/* $Id: man_validate.c,v 1.45 2010/06/28 14:39:17 kristaps Exp $ */ /* - * Copyright (c) 2008, 2009 Kristaps Dzonsons + * Copyright (c) 2008, 2009 Kristaps Dzonsons * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -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))