=================================================================== RCS file: /cvs/mandoc/mdoc_html.c,v retrieving revision 1.138 retrieving revision 1.142 diff -u -p -r1.138 -r1.142 --- mandoc/mdoc_html.c 2010/12/24 14:14:00 1.138 +++ mandoc/mdoc_html.c 2011/01/07 13:20:58 1.142 @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.138 2010/12/24 14:14:00 kristaps Exp $ */ +/* $Id: mdoc_html.c,v 1.142 2011/01/07 13:20:58 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * @@ -422,6 +422,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); @@ -450,6 +453,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); @@ -825,6 +830,7 @@ mdoc_bx_pre(MDOC_ARGS) return(0); } +/* ARGSUSED */ static int mdoc_it_pre(MDOC_ARGS) { @@ -939,7 +945,7 @@ mdoc_it_pre(MDOC_ARGS) static int mdoc_bl_pre(MDOC_ARGS) { - size_t i; + int i; struct htmlpair tag[3]; struct roffsu su; char buf[BUFSIZ]; @@ -961,10 +967,10 @@ mdoc_bl_pre(MDOC_ARGS) * screen and we want to preserve that behaviour. */ - for (i = 0; i < n->norm->Bl.ncols; i++) { + for (i = 0; i < (int)n->norm->Bl.ncols; i++) { a2width(n->norm->Bl.cols[i], &su); bufinit(h); - if (i < n->norm->Bl.ncols - 1) + if (i < (int)n->norm->Bl.ncols - 1) bufcat_su(h, "width", &su); else bufcat_su(h, "min-width", &su); @@ -1597,7 +1603,7 @@ mdoc_fo_pre(MDOC_ARGS) assert(n->child->string); PAIR_CLASS_INIT(&tag, "fname"); - t = print_otag(h, TAG_SPAN, 1, &tag); + t = print_otag(h, TAG_B, 1, &tag); print_text(h, n->child->string); print_tagq(h, t); return(0); @@ -1684,7 +1690,7 @@ mdoc_rv_pre(MDOC_ARGS) for (nn = n->child; nn; nn = nn->next) { PAIR_CLASS_INIT(&tag, "fname"); - t = print_otag(h, TAG_SPAN, 1, &tag); + t = print_otag(h, TAG_B, 1, &tag); print_text(h, nn->string); print_tagq(h, t);