=================================================================== RCS file: /cvs/mandoc/man_html.c,v retrieving revision 1.74 retrieving revision 1.76 diff -u -p -r1.74 -r1.76 --- mandoc/man_html.c 2011/06/18 20:34:08 1.74 +++ mandoc/man_html.c 2011/07/03 22:57:32 1.76 @@ -1,4 +1,4 @@ -/* $Id: man_html.c,v 1.74 2011/06/18 20:34:08 kristaps Exp $ */ +/* $Id: man_html.c,v 1.76 2011/07/03 22:57:32 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * @@ -414,8 +414,9 @@ man_br_pre(MAN_ARGS) SCALE_VS_INIT(&su, 1); if (MAN_sp == n->tok) { - if (n->child) - a2roffsu(n->child->string, &su, SCALE_VS); + if (NULL != (n = n->child)) + if ( ! a2roffsu(n->string, &su, SCALE_VS)) + SCALE_VS_INIT(&su, atoi(n->string)); } else su.scale = 0; @@ -438,6 +439,7 @@ man_SH_pre(MAN_ARGS) struct htmlpair tag; if (MAN_BLOCK == n->type) { + mh->fl &= ~MANH_LITERAL; PAIR_CLASS_INIT(&tag, "section"); print_otag(h, TAG_DIV, 1, &tag); return(1); @@ -519,6 +521,7 @@ man_SS_pre(MAN_ARGS) struct htmlpair tag; if (MAN_BLOCK == n->type) { + mh->fl &= ~MANH_LITERAL; PAIR_CLASS_INIT(&tag, "subsection"); print_otag(h, TAG_DIV, 1, &tag); return(1);