diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-01 12:59:17 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-01 12:59:17 +0000 |
commit | 131de1ee113c08ea304f934c38488baa917375f6 (patch) | |
tree | 5f9c4e393a821b0b372d6dcc62bd76de3c8850da /man_html.c | |
parent | 98371213a082f1d2d7f5faac716b9818680d3140 (diff) | |
download | mandoc-131de1ee113c08ea304f934c38488baa917375f6.tar.gz |
Add -man support for tables. Like -mdoc, this consists of an
external-facing function man_addspan() (this required shuffling around
the descope routine) and hooks elsewhere.
Also fixed mdoc.c's post-validation of tables.
Diffstat (limited to 'man_html.c')
-rw-r--r-- | man_html.c | 17 |
1 files changed, 5 insertions, 12 deletions
@@ -198,10 +198,10 @@ print_man_node(MAN_ARGS) break; case (MAN_TEXT): print_text(h, n->string); - if (MANH_LITERAL & mh->fl) print_otag(h, TAG_BR, 0, NULL); - + return; + case (MAN_TBL): return; default: /* @@ -226,17 +226,10 @@ print_man_node(MAN_ARGS) bufinit(h); - switch (n->type) { - case (MAN_ROOT): + if (MAN_ROOT == n->type) man_root_post(m, n, mh, h); - break; - case (MAN_TEXT): - break; - default: - if (mans[n->tok].post) - (*mans[n->tok].post)(m, n, mh, h); - break; - } + else if (mans[n->tok].post) + (*mans[n->tok].post)(m, n, mh, h); } |