version 1.127, 2017/01/19 13:34:59 |
version 1.128, 2017/01/19 15:27:26 |
|
|
} |
} |
|
|
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); |
} |
} |
|
|
|
|
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) |
|
|
} |
} |
|
|
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; |
} |
} |
|
|
{ |
{ |
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; |
} |
} |