From c80b8c034f0e42db26a04a17527b0b7e3dc6512b Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 1 Jan 2011 12:59:17 +0000 Subject: 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. --- man_html.c | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'man_html.c') 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 * @@ -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); } -- cgit v1.2.3-56-ge451