=================================================================== RCS file: /cvs/mandoc/man_html.c,v retrieving revision 1.15 retrieving revision 1.19 diff -u -p -r1.15 -r1.19 --- mandoc/man_html.c 2009/10/27 04:50:15 1.15 +++ mandoc/man_html.c 2009/11/14 11:58:36 1.19 @@ -1,4 +1,4 @@ -/* $Id: man_html.c,v 1.15 2009/10/27 04:50:15 kristaps Exp $ */ +/* $Id: man_html.c,v 1.19 2009/11/14 11:58:36 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -18,7 +18,6 @@ #include #include -#include #include #include #include @@ -189,7 +188,7 @@ print_man_node(MAN_ARGS) break; case (MAN_TEXT): print_text(h, n->string); - break; + return; default: if (mans[n->tok].pre) child = (*mans[n->tok].pre)(m, n, h); @@ -334,6 +333,9 @@ man_br_pre(MAN_ARGS) bufcat_su(h, "height", &su); PAIR_STYLE_INIT(&tag, h); print_otag(h, TAG_DIV, 1, &tag); + /* So the div isn't empty: */ + print_text(h, "\\~"); + return(0); }