=================================================================== RCS file: /cvs/mandoc/man_html.c,v retrieving revision 1.15 retrieving revision 1.20 diff -u -p -r1.15 -r1.20 --- mandoc/man_html.c 2009/10/27 04:50:15 1.15 +++ mandoc/man_html.c 2009/11/14 19:23:58 1.20 @@ -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.20 2009/11/14 19:23:58 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -18,7 +18,6 @@ #include #include -#include #include #include #include @@ -189,16 +188,18 @@ print_man_node(MAN_ARGS) break; case (MAN_TEXT): print_text(h, n->string); - break; + return; default: + if (h->metaf) { + assert(h->metaf == t); + print_tagq(h, h->metaf); + t = h->tags.head; + } if (mans[n->tok].pre) child = (*mans[n->tok].pre)(m, n, h); break; } - if (child && n->child) - print_man_nodelist(m, n->child, h); - print_stagq(h, t); bufinit(h); @@ -334,6 +335,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); }