version 1.228, 2015/04/02 22:48:17 |
version 1.231, 2015/04/18 16:06:40 |
|
|
|
|
#define INDENT 5 |
#define INDENT 5 |
|
|
#define MDOC_ARGS const struct mdoc_meta *meta, \ |
#define MDOC_ARGS const struct roff_meta *meta, \ |
struct roff_node *n, \ |
struct roff_node *n, \ |
struct html *h |
struct html *h |
|
|
Line 265 static const char * const lists[LIST_MAX] = { |
|
Line 265 static const char * const lists[LIST_MAX] = { |
|
|
|
|
|
void |
void |
html_mdoc(void *arg, const struct mdoc *mdoc) |
html_mdoc(void *arg, const struct roff_man *mdoc) |
{ |
{ |
|
|
print_mdoc(mdoc_meta(mdoc), mdoc_node(mdoc)->child, |
print_mdoc(mdoc_meta(mdoc), mdoc_node(mdoc)->child, |
Line 350 print_mdoc(MDOC_ARGS) |
|
Line 350 print_mdoc(MDOC_ARGS) |
|
} else |
} else |
t = print_otag(h, TAG_DIV, 1, &tag); |
t = print_otag(h, TAG_DIV, 1, &tag); |
|
|
|
mdoc_root_pre(meta, n, h); |
print_mdoc_nodelist(meta, n, h); |
print_mdoc_nodelist(meta, n, h); |
|
mdoc_root_post(meta, n, h); |
print_tagq(h, t); |
print_tagq(h, t); |
} |
} |
|
|
Line 391 print_mdoc_node(MDOC_ARGS) |
|
Line 393 print_mdoc_node(MDOC_ARGS) |
|
n->flags &= ~MDOC_ENDED; |
n->flags &= ~MDOC_ENDED; |
|
|
switch (n->type) { |
switch (n->type) { |
case ROFFT_ROOT: |
|
child = mdoc_root_pre(meta, n, h); |
|
break; |
|
case ROFFT_TEXT: |
case ROFFT_TEXT: |
/* No tables in this mode... */ |
/* No tables in this mode... */ |
assert(NULL == h->tblt); |
assert(NULL == h->tblt); |
Line 451 print_mdoc_node(MDOC_ARGS) |
|
Line 450 print_mdoc_node(MDOC_ARGS) |
|
print_stagq(h, t); |
print_stagq(h, t); |
|
|
switch (n->type) { |
switch (n->type) { |
case ROFFT_ROOT: |
|
mdoc_root_post(meta, n, h); |
|
break; |
|
case ROFFT_EQN: |
case ROFFT_EQN: |
break; |
break; |
default: |
default: |