From b6aa2f00fb00f63dc5e8e9e66c27887dfb7cb608 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 31 May 2010 15:50:48 +0000 Subject: Strengthened constraint for passing into `It'. Added regression test for constrained condition. --- mdoc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mdoc.c') diff --git a/mdoc.c b/mdoc.c index 2f0cc8b8..53f85216 100644 --- a/mdoc.c +++ b/mdoc.c @@ -1,4 +1,4 @@ -/* $Id: mdoc.c,v 1.142 2010/05/31 15:42:09 kristaps Exp $ */ +/* $Id: mdoc.c,v 1.143 2010/05/31 15:50:48 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -567,7 +567,8 @@ mdoc_ptext(struct mdoc *m, int line, char *buf, int offs) * 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)); } -- cgit v1.2.3