From e6a940ec63910db636acab48c5362bfbc6d35975 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 19 Nov 2011 13:29:47 +0000 Subject: Improve misleading comment: * Not sure there were any text nodes, might have been other stuff instead. * Not sure it was just one node, maybe several were deleted. * No problem if some nodes were deleted, as long as some valid ones are left. * We do not leave early, but after cleaning out all the crap. * We are not "bailing", but we consider the block valid after cleanup. --- mdoc_validate.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mdoc_validate.c b/mdoc_validate.c index efa769d2..f5158b01 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1693,7 +1693,11 @@ post_rs(POST_ARGS) mdoc_node_delete(mdoc, nn); } - /* Bail out early if a plain text node is found inside .Rs. */ + /* + * Nothing to sort if only invalid nodes were found + * inside the `Rs' body. + */ + if (NULL == mdoc->last->child) return(1); -- cgit