version 1.177, 2020/03/13 15:32:28 |
version 1.180, 2022/07/03 14:29:45 |
Line 132 html_man(void *arg, const struct roff_meta *man) |
|
Line 132 html_man(void *arg, const struct roff_meta *man) |
|
} |
} |
|
|
man_root_pre(man, h); |
man_root_pre(man, h); |
t = print_otag(h, TAG_DIV, "c", "manual-text"); |
t = print_otag(h, TAG_MAIN, "c", "manual-text"); |
print_man_nodelist(man, n, h); |
print_man_nodelist(man, n, h); |
print_tagq(h, t); |
print_tagq(h, t); |
man_root_post(man, h); |
man_root_post(man, h); |
Line 169 print_man_node(MAN_ARGS) |
|
Line 169 print_man_node(MAN_ARGS) |
|
if (n->type == ROFFT_COMMENT || n->flags & NODE_NOPRT) |
if (n->type == ROFFT_COMMENT || n->flags & NODE_NOPRT) |
return; |
return; |
|
|
html_fillmode(h, n->flags & NODE_NOFILL ? ROFF_nf : ROFF_fi); |
if ((n->flags & NODE_NOFILL) == 0) |
|
html_fillmode(h, ROFF_fi); |
|
else if (html_fillmode(h, ROFF_nf) == ROFF_nf && |
|
n->tok != ROFF_fi && n->flags & NODE_LINE && |
|
(n->prev == NULL || n->prev->tok != MAN_YS)) |
|
print_endline(h); |
|
|
child = 1; |
child = 1; |
switch (n->type) { |
switch (n->type) { |
Line 253 print_man_node(MAN_ARGS) |
|
Line 258 print_man_node(MAN_ARGS) |
|
} |
} |
if (t != NULL) |
if (t != NULL) |
print_stagq(h, t); |
print_stagq(h, t); |
|
|
if (n->flags & NODE_NOFILL && n->tok != MAN_YS && |
|
(n->next != NULL && n->next->flags & NODE_LINE)) { |
|
/* In .nf = <pre>, print even empty lines. */ |
|
h->col++; |
|
print_endline(h); |
|
} |
|
} |
} |
|
|
static void |
static void |
Line 327 man_SH_pre(MAN_ARGS) |
|
Line 325 man_SH_pre(MAN_ARGS) |
|
print_otag(h, TAG_SECTION, "c", class); |
print_otag(h, TAG_SECTION, "c", class); |
break; |
break; |
case ROFFT_HEAD: |
case ROFFT_HEAD: |
n->flags |= NODE_ID; |
|
print_otag_id(h, tag, class, n); |
print_otag_id(h, tag, class, n); |
break; |
break; |
case ROFFT_BODY: |
case ROFFT_BODY: |