version 1.7, 2009/09/24 11:55:28 |
version 1.9, 2009/09/24 15:05:56 |
Line 1596 mdoc_fn_pre(MDOC_ARGS) |
|
Line 1596 mdoc_fn_pre(MDOC_ARGS) |
|
assert(n->child->string); |
assert(n->child->string); |
sp = n->child->string; |
sp = n->child->string; |
while ((ep = strchr(sp, ' '))) { |
while ((ep = strchr(sp, ' '))) { |
sz = MIN(ep - sp, BUFSIZ - 1); |
sz = MIN((int)(ep - sp), BUFSIZ - 1); |
(void)memcpy(nbuf, sp, sz); |
(void)memcpy(nbuf, sp, (size_t)sz); |
nbuf[sz] = '\0'; |
nbuf[sz] = '\0'; |
print_text(h, nbuf); |
print_text(h, nbuf); |
sp = ++ep; |
sp = ++ep; |
Line 2015 mdoc_pf_post(MDOC_ARGS) |
|
Line 2015 mdoc_pf_post(MDOC_ARGS) |
|
static int |
static int |
mdoc_rs_pre(MDOC_ARGS) |
mdoc_rs_pre(MDOC_ARGS) |
{ |
{ |
struct htmlpair tag[2]; |
struct htmlpair tag; |
int i; |
|
|
|
if (MDOC_BLOCK != n->type) |
if (MDOC_BLOCK != n->type) |
return(1); |
return(1); |
|
|
tag[i = 0].key = ATTR_CLASS; |
if (n->prev && SEC_SEE_ALSO == n->sec) { |
tag[i++].val = "ref"; |
tag.key = ATTR_STYLE; |
|
tag.val = "margin-top: 1em;"; |
if (n->prev && SEC_SYNOPSIS == n->sec) { |
print_otag(h, TAG_DIV, 1, &tag); |
tag[i].key = ATTR_STYLE; |
|
tag[i++].val = "margin-top: 1em;"; |
|
} else if (SEC_SYNOPSIS != n->sec) { |
|
tag[i].key = ATTR_STYLE; |
|
tag[i++].val = "display: inline; margin-right: 1em"; |
|
} |
} |
|
|
/* FIXME: div's have spaces stripped--we want them. */ |
tag.key = ATTR_CLASS; |
|
tag.val = "ref"; |
print_otag(h, TAG_DIV, i, tag); |
print_otag(h, TAG_SPAN, 1, &tag); |
return(1); |
return(1); |
} |
} |
|
|