version 1.105, 2010/07/02 12:54:33 |
version 1.106, 2010/07/02 13:12:47 |
Line 957 post_bf(POST_ARGS) |
|
Line 957 post_bf(POST_ARGS) |
|
} |
} |
|
|
np = mdoc->last; |
np = mdoc->last; |
|
assert(MDOC_BLOCK == np->parent->type); |
|
assert(MDOC_Bf == np->parent->tok); |
np->data.Bf = mandoc_calloc(1, sizeof(struct mdoc_bf)); |
np->data.Bf = mandoc_calloc(1, sizeof(struct mdoc_bf)); |
|
|
/* |
/* |
Line 964 post_bf(POST_ARGS) |
|
Line 966 post_bf(POST_ARGS) |
|
* If neither is specified, let it through with a warning. |
* If neither is specified, let it through with a warning. |
*/ |
*/ |
|
|
if (np->args && np->child) { |
if (np->parent->args && np->child) { |
mdoc_nmsg(mdoc, np, MANDOCERR_SYNTARGVCOUNT); |
mdoc_nmsg(mdoc, np, MANDOCERR_SYNTARGVCOUNT); |
return(0); |
return(0); |
} else if (NULL == np->args && NULL == np->child) |
} else if (NULL == np->parent->args && NULL == np->child) |
return(mdoc_nmsg(mdoc, np, MANDOCERR_FONTTYPE)); |
return(mdoc_nmsg(mdoc, np, MANDOCERR_FONTTYPE)); |
|
|
/* Extract argument into data. */ |
/* Extract argument into data. */ |
|
|
if (np->args) { |
if (np->parent->args) { |
arg = np->args->argv[0].arg; |
arg = np->parent->args->argv[0].arg; |
if (MDOC_Emphasis == arg) |
if (MDOC_Emphasis == arg) |
np->data.Bf->font = FONT_Em; |
np->data.Bf->font = FONT_Em; |
else if (MDOC_Literal == arg) |
else if (MDOC_Literal == arg) |