=================================================================== RCS file: /cvs/mandoc/man_html.c,v retrieving revision 1.46 retrieving revision 1.49 diff -u -p -r1.46 -r1.49 --- mandoc/man_html.c 2010/12/05 16:14:16 1.46 +++ mandoc/man_html.c 2010/12/06 14:12:48 1.49 @@ -1,4 +1,4 @@ -/* $Id: man_html.c,v 1.46 2010/12/05 16:14:16 kristaps Exp $ */ +/* $Id: man_html.c,v 1.49 2010/12/06 14:12:48 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * @@ -362,15 +362,11 @@ man_br_pre(MAN_ARGS) SCALE_VS_INIT(&su, 1); - switch (n->tok) { - case (MAN_sp): + if (MAN_sp == n->tok) { if (n->child) a2roffsu(n->child->string, &su, SCALE_VS); - break; - default: + } else su.scale = 0; - break; - } bufcat_su(h, "height", &su); PAIR_STYLE_INIT(&tag, h); @@ -547,8 +543,10 @@ man_PP_pre(MAN_ARGS) struct roffsu su; int i; - if (MAN_BLOCK != n->type) + if (MAN_BODY == n->type) return(1); + if (MAN_HEAD == n->type) + return(0); i = 0; @@ -565,6 +563,7 @@ man_PP_pre(MAN_ARGS) PAIR_STYLE_INIT(&tag, h); print_otag(h, TAG_DIV, i, &tag); + return(1); } @@ -730,15 +729,11 @@ static int man_literal_pre(MAN_ARGS) { - switch (n->tok) { - case (MAN_nf): + if (MAN_nf == n->tok) { print_otag(h, TAG_BR, 0, NULL); mh->fl |= MANH_LITERAL; - break; - default: + } else mh->fl &= ~MANH_LITERAL; - break; - } return(1); }