summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-31 11:52:06 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-31 11:52:06 +0000
commit86047db23506d12393719c79039d2dcfa314ffc9 (patch)
treee4336057eb8a2b75023f53a5dc300287ec213115
parentb3868d0d4ceddf0621d291199ab9f79206c76290 (diff)
downloadmandoc-86047db23506d12393719c79039d2dcfa314ffc9.tar.gz
`Ta' scope-checks need to be more specific (until implicit `It' handling
comes into play).
-rw-r--r--mdoc_macro.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c
index 20be5acb..008efdd0 100644
--- a/mdoc_macro.c
+++ b/mdoc_macro.c
@@ -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);
}