From 71ceed5b12247cad85fa45574fe88d363d78262f Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 24 May 2010 02:24:06 +0000 Subject: The input .Bl -tag .Sm off .It ... triggered an assertion, which it shouldn't; the warning that .Bl -tag "requires the width argument" is enough. From Joerg Sonnenberger. --- usr.bin/mandoc/mdoc_action.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'usr.bin/mandoc') diff --git a/usr.bin/mandoc/mdoc_action.c b/usr.bin/mandoc/mdoc_action.c index a5628261009..764232d9f60 100644 --- a/usr.bin/mandoc/mdoc_action.c +++ b/usr.bin/mandoc/mdoc_action.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_action.c,v 1.37 2010/05/24 00:00:10 schwarze Exp $ */ +/* $Id: mdoc_action.c,v 1.38 2010/05/24 02:24:05 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -633,11 +633,14 @@ post_bl_tagwidth(POST_ARGS) /* Defaults to ten ens. */ sz = 10; /* XXX: make this a macro value. */ - nn = n->body->child; + + for (nn = n->body->child; nn; nn = nn->next) { + if (MDOC_It == nn->tok) + break; + } if (nn) { assert(MDOC_BLOCK == nn->type); - assert(MDOC_It == nn->tok); nn = nn->head->child; if (MDOC_TEXT != nn->type) { sz = mdoc_macro2len(nn->tok); -- cgit v1.2.3