aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-01-01 12:59:17 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-01-01 12:59:17 +0000
commitc80b8c034f0e42db26a04a17527b0b7e3dc6512b (patch)
tree7a146488e062534e63eb8c284052e30e2d869cd6 /man_html.c
parent625153bf5457ded8b8946e7f0f831993b94dd863 (diff)
downloadmandoc-c80b8c034f0e42db26a04a17527b0b7e3dc6512b.tar.gz
mandoc-c80b8c034f0e42db26a04a17527b0b7e3dc6512b.tar.zst
mandoc-c80b8c034f0e42db26a04a17527b0b7e3dc6512b.zip
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.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/man_html.c b/man_html.c
index 4bcdf3dc..31015adb 100644
--- a/man_html.c
+++ b/man_html.c
@@ -1,4 +1,4 @@
-/* $Id: man_html.c,v 1.57 2010/12/24 00:46:49 kristaps Exp $ */
+/* $Id: man_html.c,v 1.58 2011/01/01 12:59:17 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -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);
}