source@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: kristaps@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: Strengthened constraint for passing into `It'.
Date: Mon, 31 May 2010 11:50:50 -0400 (EDT)	[thread overview]
Message-ID: <201005311550.o4VFoowA029705@krisdoz.my.domain> (raw)

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

                 reply	other threads:[~2010-05-31 15:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201005311550.o4VFoowA029705@krisdoz.my.domain \
    --to=kristaps@mdocml.bsd.lv \
    --cc=source@mdocml.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).