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

List:       mandoc-source
Subject:    mdocml: Strengthened constraint for passing into `It'.
From:       kristaps () mdocml ! bsd ! lv
Date:       2010-05-31 15:50:50
Message-ID: 201005311550.o4VFoowA029705 () krisdoz ! my ! domain
[Download RAW message or body]

Log Message:
-----------
Strengthened constraint for passing into `It'.

Added regression test for constrained condition.

Modified Files:
--------------
    mdocml:
        mdoc.c

Added Files:
-----------
    mdocml/regress/mdoc/It:
        freecol3.in

Revision Data
-------------
Index: mdoc.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc.c,v
retrieving revision 1.142
retrieving revision 1.143
diff -Lmdoc.c -Lmdoc.c -u -p -r1.142 -r1.143
--- mdoc.c
+++ mdoc.c
@@ -567,7 +567,8 @@ mdoc_ptext(struct mdoc *m, int line, cha
 	 * should process within its context).
 	 */
 
-	if (MDOC_Bl == n->tok && LIST_column == n->data.list) {
+	if (MDOC_Bl == n->tok && MDOC_BODY == n->type &&
+			LIST_column == n->data.list) {
 		m->flags |= MDOC_FREECOL;
 		return(mdoc_macro(m, MDOC_It, line, offs, &offs, buf));
 	}
--- /dev/null
+++ regress/mdoc/It/freecol3.in
@@ -0,0 +1,17 @@
+.Dd $Mdocdate: May 31 2010 $
+.Dt FOO
+.Os
+.Sh NAME
+.Nm foo
+.Nd bar
+.Sh DESCRIPTION
+hello
+.Bl -column asdfasdf asdfasdf
+hello	there
+hello	there
+.It hello	there
+.It hello Ta there
+.It hello Ta
+there
+.El
+bubu
--
 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