* mdocml: Strengthened constraint for passing into `It'.
@ 2010-05-31 15:50 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2010-05-31 15:50 UTC (permalink / raw)
To: source
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-05-31 15:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-31 15:50 mdocml: Strengthened constraint for passing into `It' kristaps
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).