=================================================================== RCS file: /cvs/mandoc/mdoc_validate.c,v retrieving revision 1.101 retrieving revision 1.103 diff -u -p -r1.101 -r1.103 --- mandoc/mdoc_validate.c 2010/06/27 17:53:27 1.101 +++ mandoc/mdoc_validate.c 2010/07/01 21:44:47 1.103 @@ -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.103 2010/07/01 21:44:47 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -458,6 +458,11 @@ check_text(struct mdoc *mdoc, int line, int pos, char { 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)) @@ -538,6 +543,8 @@ pre_bl(PRE_ARGS) if (MDOC_BLOCK != n->type) { assert(n->parent); + if (ENDBODY_NOT != n->end) + return(1); assert(MDOC_BLOCK == n->parent->type); assert(MDOC_Bl == n->parent->tok); assert(LIST__NONE != n->parent->data.Bl.type);