diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2011-11-19 13:29:47 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2011-11-19 13:29:47 +0000 |
commit | e6a940ec63910db636acab48c5362bfbc6d35975 (patch) | |
tree | a8c9991a9ce71d0437219a8c21eda09f23666160 | |
parent | 5e58ef659dbec6d606796c77184c47077737ad82 (diff) | |
download | mandoc-e6a940ec63910db636acab48c5362bfbc6d35975.tar.gz |
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.
-rw-r--r-- | mdoc_validate.c | 6 |
1 files changed, 5 insertions, 1 deletions
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); |