version 1.7, 2009/09/24 11:55:28 |
version 1.8, 2009/09/24 13:18:37 |
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); |
} |
} |
|
|