=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/mdoc_validate.c,v retrieving revision 1.42 retrieving revision 1.43 diff -c -r1.42 -r1.43 *** src/usr.bin/mandoc/mdoc_validate.c 2010/02/18 02:11:26 1.42 --- src/usr.bin/mandoc/mdoc_validate.c 2010/03/02 00:38:59 1.43 *************** *** 1,4 **** ! /* $Id: mdoc_validate.c,v 1.42 2010/02/18 02:11:26 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * --- 1,4 ---- ! /* $Id: mdoc_validate.c,v 1.43 2010/03/02 00:38:59 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * *************** *** 269,274 **** --- 269,275 ---- { NULL, posts_notext }, /* br */ { NULL, posts_sp }, /* sp */ { NULL, posts_text1 }, /* %U */ + { NULL, NULL }, /* eos */ }; *************** *** 904,910 **** return(1); for (n = mdoc->last->child; n; n = n->next) ! if (MDOC_TEXT != n->type) if ( ! mdoc_nwarn(mdoc, n, EBADCHILD)) return(0); --- 905,912 ---- return(1); for (n = mdoc->last->child; n; n = n->next) ! if (MDOC_TEXT != n->type && ! (MDOC_ELEM != n->type || MDOC_eos != n->tok)) if ( ! mdoc_nwarn(mdoc, n, EBADCHILD)) return(0);