summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mdoc_html.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2011-01-04 22:28:17 +0000
committerschwarze <schwarze@openbsd.org>2011-01-04 22:28:17 +0000
commit2791bd1c99baed97baf79feee97899256995b5a6 (patch)
tree50f04f74700b9a5b5602a363f3872a3788017c6e /usr.bin/mandoc/mdoc_html.c
parentAdd support for Memory Mapped Configuration space access. This gives us (diff)
downloadwireguard-openbsd-2791bd1c99baed97baf79feee97899256995b5a6.tar.xz
wireguard-openbsd-2791bd1c99baed97baf79feee97899256995b5a6.zip
Merge kristaps@' cleaner tbl integration, removing mine;
there are still a few bugs, but fixing these will be easier in tree.
Diffstat (limited to 'usr.bin/mandoc/mdoc_html.c')
-rw-r--r--usr.bin/mandoc/mdoc_html.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/mandoc/mdoc_html.c b/usr.bin/mandoc/mdoc_html.c
index 26bda0d55fc..427583b9711 100644
--- a/usr.bin/mandoc/mdoc_html.c
+++ b/usr.bin/mandoc/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.44 2010/12/29 00:47:31 schwarze Exp $ */
+/* $Id: mdoc_html.c,v 1.45 2011/01/04 22:28:17 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -239,8 +239,6 @@ static const struct htmlmdoc mdocs[MDOC_MAX] = {
{mdoc_sp_pre, NULL}, /* sp */
{mdoc__x_pre, mdoc__x_post}, /* %U */
{NULL, NULL}, /* Ta */
- {NULL, NULL}, /* TS */
- {NULL, NULL}, /* TE */
};
static const char * const lists[LIST_MAX] = {
@@ -420,6 +418,9 @@ print_mdoc_node(MDOC_ARGS)
case (MDOC_TEXT):
print_text(h, n->string);
return;
+ case (MDOC_TBL):
+ print_tbl(h, n->span);
+ break;
default:
if (mdocs[n->tok].pre && ENDBODY_NOT == n->end)
child = (*mdocs[n->tok].pre)(m, n, h);
@@ -448,6 +449,8 @@ print_mdoc_node(MDOC_ARGS)
case (MDOC_ROOT):
mdoc_root_post(m, n, h);
break;
+ case (MDOC_TBL):
+ break;
default:
if (mdocs[n->tok].post && ENDBODY_NOT == n->end)
(*mdocs[n->tok].post)(m, n, h);