=================================================================== RCS file: /cvs/mandoc/Attic/validate.c,v retrieving revision 1.73 retrieving revision 1.75 diff -u -p -r1.73 -r1.75 --- mandoc/Attic/validate.c 2009/03/08 12:40:27 1.73 +++ mandoc/Attic/validate.c 2009/03/08 20:50:12 1.75 @@ -1,4 +1,4 @@ -/* $Id: validate.c,v 1.73 2009/03/08 12:40:27 kristaps Exp $ */ +/* $Id: validate.c,v 1.75 2009/03/08 20:50:12 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -298,6 +298,7 @@ const struct valids mdoc_valids[MDOC_MAX] = { { NULL, NULL }, /* Fr */ { NULL, posts_notext }, /* Ud */ { pres_lb, posts_lb }, /* Lb */ + { NULL, NULL }, /* Lb */ }; @@ -685,7 +686,12 @@ check_text(struct mdoc *mdoc, int line, int pos, const p += (int)c - 1; continue; } - return(mdoc_perr(mdoc, line, pos, "invalid escape")); + if ( ! (MDOC_IGN_ESCAPE & mdoc->pflags)) + return(mdoc_perr(mdoc, line, pos, + "invalid escape sequence")); + if ( ! mdoc_pwarn(mdoc, line, pos, WARN_SYNTAX, + "invalid escape sequence")) + return(0); } return(1);