version 1.174, 2011/07/23 22:57:13 |
version 1.175, 2011/08/10 14:07:23 |
Line 608 mdoc_sh_pre(MDOC_ARGS) |
|
Line 608 mdoc_sh_pre(MDOC_ARGS) |
|
|
|
bufinit(h); |
bufinit(h); |
bufcat(h, "x"); |
bufcat(h, "x"); |
for (n = n->child; n; n = n->next) { |
|
|
for (n = n->child; n && MDOC_TEXT == n->type; ) { |
bufcat_id(h, n->string); |
bufcat_id(h, n->string); |
if (n->next) |
if (NULL != (n = n->next)) |
bufcat_id(h, " "); |
bufcat_id(h, " "); |
} |
} |
|
|
PAIR_ID_INIT(&tag, h->buf); |
if (NULL == n) { |
print_otag(h, TAG_H1, 1, &tag); |
PAIR_ID_INIT(&tag, h->buf); |
|
print_otag(h, TAG_H1, 1, &tag); |
|
} else |
|
print_otag(h, TAG_H1, 0, NULL); |
|
|
return(1); |
return(1); |
} |
} |
|
|
|
|
/* ARGSUSED */ |
/* ARGSUSED */ |
static int |
static int |
mdoc_ss_pre(MDOC_ARGS) |
mdoc_ss_pre(MDOC_ARGS) |
Line 635 mdoc_ss_pre(MDOC_ARGS) |
|
Line 639 mdoc_ss_pre(MDOC_ARGS) |
|
|
|
bufinit(h); |
bufinit(h); |
bufcat(h, "x"); |
bufcat(h, "x"); |
for (n = n->child; n; n = n->next) { |
|
|
for (n = n->child; n && MDOC_TEXT == n->type; ) { |
bufcat_id(h, n->string); |
bufcat_id(h, n->string); |
if (n->next) |
if (NULL != (n = n->next)) |
bufcat_id(h, " "); |
bufcat_id(h, " "); |
} |
} |
|
|
PAIR_ID_INIT(&tag, h->buf); |
if (NULL == n) { |
print_otag(h, TAG_H2, 1, &tag); |
PAIR_ID_INIT(&tag, h->buf); |
|
print_otag(h, TAG_H2, 1, &tag); |
|
} else |
|
print_otag(h, TAG_H2, 0, NULL); |
|
|
return(1); |
return(1); |
} |
} |
|
|
Line 1171 mdoc_sx_pre(MDOC_ARGS) |
|
Line 1180 mdoc_sx_pre(MDOC_ARGS) |
|
|
|
bufinit(h); |
bufinit(h); |
bufcat(h, "#x"); |
bufcat(h, "#x"); |
for (n = n->child; n; n = n->next) { |
|
|
for (n = n->child; n; ) { |
bufcat_id(h, n->string); |
bufcat_id(h, n->string); |
if (n->next) |
if (NULL != (n = n->next)) |
bufcat_id(h, " "); |
bufcat_id(h, " "); |
} |
} |
|
|