From 85ce3efeb7beb27100a478682d23beb626a33315 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 31 May 2010 11:52:06 +0000 Subject: `Ta' scope-checks need to be more specific (until implicit `It' handling comes into play). --- mdoc_macro.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mdoc_macro.c') diff --git a/mdoc_macro.c b/mdoc_macro.c index 3fdfba06..f80c84b7 100644 --- a/mdoc_macro.c +++ b/mdoc_macro.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_macro.c,v 1.75 2010/05/31 10:28:04 kristaps Exp $ */ +/* $Id: mdoc_macro.c,v 1.76 2010/05/31 11:52:06 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -1702,7 +1702,10 @@ phrase_ta(MACRO_PROT_ARGS) */ if (NULL == m->last || MDOC_BODY != m->last->type || - MDOC_It != m->last->tok) { + MDOC_It != m->last->tok || + NULL == m->last->parent->parent || + MDOC_Bl != m->last->parent->parent->tok || + LIST_column != m->last->parent->parent->data.list) { swarn(m, tok, line, ppos, n); return(0); } -- cgit v1.2.3