=================================================================== RCS file: /cvs/mandoc/mdoc_html.c,v retrieving revision 1.145 retrieving revision 1.148 diff -u -p -r1.145 -r1.148 --- mandoc/mdoc_html.c 2011/01/25 15:17:18 1.145 +++ mandoc/mdoc_html.c 2011/01/25 16:20:24 1.148 @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.145 2011/01/25 15:17:18 kristaps Exp $ */ +/* $Id: mdoc_html.c,v 1.148 2011/01/25 16:20:24 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * @@ -823,8 +823,14 @@ mdoc_xx_pre(MDOC_ARGS) PAIR_CLASS_INIT(&tag, "unix"); print_otag(h, TAG_SPAN, 1, &tag); + print_text(h, pp); - return(1); + if (n->child) { + h->flags |= HTML_KEEP; + print_text(h, n->child->string); + h->flags &= ~HTML_KEEP; + } + return(0); } @@ -832,7 +838,7 @@ mdoc_xx_pre(MDOC_ARGS) static int mdoc_bx_pre(MDOC_ARGS) { - struct htmlpair tag; + struct htmlpair tag; PAIR_CLASS_INIT(&tag, "unix"); print_otag(h, TAG_SPAN, 1, &tag);