version 1.65, 2009/02/28 14:40:07 |
version 1.67, 2009/03/04 13:57:35 |
|
|
|
|
#include "private.h" |
#include "private.h" |
|
|
|
/* FIXME: .Bl -diag can't have non-text children in HEAD. */ |
|
|
/* |
/* |
* Pre- and post-validate macros as they're parsed. Pre-validation |
* Pre- and post-validate macros as they're parsed. Pre-validation |
* occurs when the macro has been detected and its arguments parsed. |
* occurs when the macro has been detected and its arguments parsed. |
Line 484 check_text(struct mdoc *mdoc, int line, int pos, const |
|
Line 486 check_text(struct mdoc *mdoc, int line, int pos, const |
|
for ( ; *p; p++) { |
for ( ; *p; p++) { |
if ( ! isprint((int)*p) && '\t' != *p) |
if ( ! isprint((int)*p) && '\t' != *p) |
return(mdoc_perr(mdoc, line, pos, |
return(mdoc_perr(mdoc, line, pos, |
"invalid characters")); |
"invalid non-printing characters")); |
if ('\\' != *p) |
if ('\\' != *p) |
continue; |
continue; |
if ((c = mdoc_isescape(p))) { |
if ((c = mdoc_isescape(p))) { |