=================================================================== RCS file: /cvs/mandoc/mdoc_validate.c,v retrieving revision 1.177 retrieving revision 1.178 diff -u -p -r1.177 -r1.178 --- mandoc/mdoc_validate.c 2011/10/16 12:20:34 1.177 +++ mandoc/mdoc_validate.c 2011/11/18 14:58:24 1.178 @@ -1,4 +1,4 @@ -/* $Id: mdoc_validate.c,v 1.177 2011/10/16 12:20:34 schwarze Exp $ */ +/* $Id: mdoc_validate.c,v 1.178 2011/11/18 14:58:24 joerg Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2011 Ingo Schwarze @@ -1692,6 +1692,10 @@ post_rs(POST_ARGS) mdoc_nmsg(mdoc, nn, MANDOCERR_CHILD); mdoc_node_delete(mdoc, nn); } + + /* Bail out early if a plain text node is found inside .Rs. */ + if (NULL == mdoc->last->child) + return(1); /* * The full `Rs' block needs special handling to order the