summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdoc_validate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index b19aba56..d39645bf 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -1168,6 +1168,8 @@ post_sh_body(POST_ARGS)
for ( ; n && n->next; n = n->next) {
if (MDOC_ELEM == n->type && MDOC_Nm == n->tok)
continue;
+ if (MDOC_TEXT == n->type)
+ continue;
if ( ! mdoc_nwarn(mdoc, mdoc->last, ENAMESECINC))
return(0);
}