diff options
-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); |