]> git.cameronkatri.com Git - mandoc.git/commitdiff
`Ta' scope-checks need to be more specific (until implicit `It' handling
authorKristaps Dzonsons <kristaps@bsd.lv>
Mon, 31 May 2010 11:52:06 +0000 (11:52 +0000)
committerKristaps Dzonsons <kristaps@bsd.lv>
Mon, 31 May 2010 11:52:06 +0000 (11:52 +0000)
comes into play).

mdoc_macro.c

index 3fdfba06d308e9a8b8c62749bed28d09e7436db4..f80c84b7f666779a22f14f61c24394a75b619c23 100644 (file)
@@ -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);
        }