From fa89a330ef9bb59b97b3bcc7777c1b930e89c978 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sun, 12 Jul 2009 16:38:15 +0000 Subject: Added back in MDOC_TEXT stipulation in NAME check (post-Nm punctuation, duh). --- mdoc_validate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mdoc_validate.c') diff --git a/mdoc_validate.c b/mdoc_validate.c index 4a31b458..76a23519 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_validate.c,v 1.27 2009/07/12 16:34:16 kristaps Exp $ */ +/* $Id: mdoc_validate.c,v 1.28 2009/07/12 16:38:15 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -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); } -- cgit v1.2.3