diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-05-24 02:24:06 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-05-24 02:24:06 +0000 |
commit | 71ceed5b12247cad85fa45574fe88d363d78262f (patch) | |
tree | 1e1666c3c344b8ca969e6dce5640835ca11163ac /usr.bin/mandoc | |
parent | 84ed55f47d75f7d61021698281a5003d0e1bdb25 (diff) |
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.
Diffstat (limited to 'usr.bin/mandoc')
-rw-r--r-- | usr.bin/mandoc/mdoc_action.c | 9 |
1 files changed, 6 insertions, 3 deletions
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 <kristaps@kth.se> * @@ -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); |