version 1.125, 2017/01/19 01:00:14 |
version 1.126, 2017/01/19 13:35:02 |
Line 148 html_man(void *arg, const struct roff_man *man) |
|
Line 148 html_man(void *arg, const struct roff_man *man) |
|
{ |
{ |
struct mhtml mh; |
struct mhtml mh; |
struct html *h; |
struct html *h; |
struct tag *t, *tt; |
struct tag *t; |
|
|
memset(&mh, 0, sizeof(mh)); |
memset(&mh, 0, sizeof(mh)); |
h = (struct html *)arg; |
h = (struct html *)arg; |
|
|
if ( ! (HTML_FRAGMENT & h->oflags)) { |
if ((h->oflags & HTML_FRAGMENT) == 0) { |
print_gen_decls(h); |
print_gen_decls(h); |
t = print_otag(h, TAG_HTML, ""); |
print_otag(h, TAG_HTML, ""); |
tt = print_otag(h, TAG_HEAD, ""); |
t = print_otag(h, TAG_HEAD, ""); |
print_man_head(&man->meta, man->first, &mh, h); |
print_man_head(&man->meta, man->first, &mh, h); |
print_tagq(h, tt); |
print_tagq(h, t); |
print_otag(h, TAG_BODY, ""); |
print_otag(h, TAG_BODY, ""); |
print_otag(h, TAG_DIV, "c", "mandoc"); |
} |
} else |
|
t = print_otag(h, TAG_DIV, "c", "mandoc"); |
|
|
|
print_man_nodelist(&man->meta, man->first, &mh, h); |
print_man_nodelist(&man->meta, man->first, &mh, h); |
print_tagq(h, t); |
print_tagq(h, NULL); |
} |
} |
|
|
static void |
static void |