diff options
author | Joerg Sonnenberger <joerg@netbsd.org> | 2010-05-24 11:59:37 +0000 |
---|---|---|
committer | Joerg Sonnenberger <joerg@netbsd.org> | 2010-05-24 11:59:37 +0000 |
commit | 7d5764bedb39f0bde2cccd1eb9a7a13a9b0760df (patch) | |
tree | 7c9d0a7e0ca74522ccb0cb4e4ecc6c0427991b28 | |
parent | 284fd60184af10ebddfefe0094be27494174be92 (diff) | |
download | mandoc-7d5764bedb39f0bde2cccd1eb9a7a13a9b0760df.tar.gz mandoc-7d5764bedb39f0bde2cccd1eb9a7a13a9b0760df.tar.zst mandoc-7d5764bedb39f0bde2cccd1eb9a7a13a9b0760df.zip |
If a .Bl -tag lacks a -width, skip all non-It macros for the implicit
calculation. E.g. .Sm can occur as direct child of .Bl.
OK schwarze@
-rw-r--r-- | mdoc_action.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mdoc_action.c b/mdoc_action.c index 96c3d51d..76003caf 100644 --- a/mdoc_action.c +++ b/mdoc_action.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_action.c,v 1.60 2010/05/17 23:57:06 kristaps Exp $ */ +/* $Id: mdoc_action.c,v 1.61 2010/05/24 11:59:37 joerg Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -637,11 +637,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); |