[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mandoc-source
Subject:    mdocml: Remove now-superfluous check on `Ta' context.
From:       kristaps () mdocml ! bsd ! lv
Date:       2010-05-31 22:39:55
Message-ID: 201005312239.o4VMdtKe019214 () krisdoz ! my ! domain
[Download RAW message or body]

Log Message:
-----------
Remove now-superfluous check on `Ta' context.

Modified Files:
--------------
    mdocml:
        mdoc_macro.c

Revision Data
-------------
Index: mdoc_macro.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_macro.c,v
retrieving revision 1.77
retrieving revision 1.78
diff -Lmdoc_macro.c -Lmdoc_macro.c -u -p -r1.77 -r1.78
--- mdoc_macro.c
+++ mdoc_macro.c
@@ -1700,26 +1700,6 @@ phrase_ta(MACRO_PROT_ARGS)
 	n = m->last;
 	if ( ! rew_sub(MDOC_BODY, m, MDOC_It, line, ppos))
 		return(0);
-
-	/* 
-	 * FIXME: this is necessary in bogus constructions like
-	 *  .Bl -column foo bar
-	 *  .Sy foo Ta bar
-	 * It is, however, an ugly way to do it.
-	 *
-	 * XXX; remove this when the above construct builds an implied
-	 * `It' marker.
-	 */ 
-	if (NULL == m->last || 
-			MDOC_BODY != m->last->type ||
-			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);
-	}
-
 	if ( ! mdoc_body_alloc(m, line, ppos, MDOC_It))
 		return(0);
 
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic