version 1.252, 2017/01/19 13:35:02 |
version 1.253, 2017/01/19 15:27:34 |
Line 313 html_mdoc(void *arg, const struct roff_man *mdoc) |
|
Line 313 html_mdoc(void *arg, const struct roff_man *mdoc) |
|
} |
} |
|
|
mdoc_root_pre(&mdoc->meta, mdoc->first->child, h); |
mdoc_root_pre(&mdoc->meta, mdoc->first->child, h); |
|
t = print_otag(h, TAG_DIV, "c", "manual-text"); |
print_mdoc_nodelist(&mdoc->meta, mdoc->first->child, h); |
print_mdoc_nodelist(&mdoc->meta, mdoc->first->child, h); |
|
print_tagq(h, t); |
mdoc_root_post(&mdoc->meta, mdoc->first->child, h); |
mdoc_root_post(&mdoc->meta, mdoc->first->child, h); |
print_tagq(h, NULL); |
print_tagq(h, NULL); |
} |
} |
Line 519 mdoc_sh_pre(MDOC_ARGS) |
|
Line 521 mdoc_sh_pre(MDOC_ARGS) |
|
|
|
switch (n->type) { |
switch (n->type) { |
case ROFFT_BLOCK: |
case ROFFT_BLOCK: |
print_otag(h, TAG_DIV, "c", "section"); |
|
return 1; |
return 1; |
case ROFFT_BODY: |
case ROFFT_BODY: |
if (n->sec == SEC_AUTHORS) |
if (n->sec == SEC_AUTHORS) |
Line 530 mdoc_sh_pre(MDOC_ARGS) |
|
Line 531 mdoc_sh_pre(MDOC_ARGS) |
|
} |
} |
|
|
if ((id = make_id(n)) != NULL) { |
if ((id = make_id(n)) != NULL) { |
print_otag(h, TAG_H1, "i", id); |
print_otag(h, TAG_H1, "ci", "Sh", id); |
free(id); |
free(id); |
} else |
} else |
print_otag(h, TAG_H1, ""); |
print_otag(h, TAG_H1, "c", "Sh"); |
|
|
return 1; |
return 1; |
} |
} |
Line 543 mdoc_ss_pre(MDOC_ARGS) |
|
Line 544 mdoc_ss_pre(MDOC_ARGS) |
|
{ |
{ |
char *id; |
char *id; |
|
|
if (n->type == ROFFT_BLOCK) { |
if (n->type != ROFFT_HEAD) |
print_otag(h, TAG_DIV, "c", "subsection"); |
|
return 1; |
return 1; |
} else if (n->type == ROFFT_BODY) |
|
return 1; |
|
|
|
if ((id = make_id(n)) != NULL) { |
if ((id = make_id(n)) != NULL) { |
print_otag(h, TAG_H2, "i", id); |
print_otag(h, TAG_H2, "ci", "Ss", id); |
free(id); |
free(id); |
} else |
} else |
print_otag(h, TAG_H2, ""); |
print_otag(h, TAG_H2, "c", "Ss"); |
|
|
return 1; |
return 1; |
} |
} |