summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdoc_validate.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index 09f91873..efa769d2 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -1693,6 +1693,10 @@ post_rs(POST_ARGS)
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
* sub-elements according to `rsord'. Pick through each element