aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_macro.c
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
commit85ce3efeb7beb27100a478682d23beb626a33315 (patch)
treef60a11c9551d2ec334be0f105bc1e37211e76178 /mdoc_macro.c
parent686992645eeb0a2253503701789f6c99654cdfc1 (diff)
downloadmandoc-85ce3efeb7beb27100a478682d23beb626a33315.tar.gz
mandoc-85ce3efeb7beb27100a478682d23beb626a33315.tar.zst
mandoc-85ce3efeb7beb27100a478682d23beb626a33315.zip
`Ta' scope-checks need to be more specific (until implicit `It' handling
comes into play).
Diffstat (limited to 'mdoc_macro.c')
-rw-r--r--mdoc_macro.c7
1 files changed, 5 insertions, 2 deletions
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 <kristaps@kth.se>
*
@@ -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);
}