=================================================================== RCS file: /cvs/mandoc/mdoc_html.c,v retrieving revision 1.151 retrieving revision 1.152 diff -u -p -r1.151 -r1.152 --- mandoc/mdoc_html.c 2011/02/06 21:44:36 1.151 +++ mandoc/mdoc_html.c 2011/02/06 23:02:31 1.152 @@ -1,6 +1,6 @@ -/* $Id: mdoc_html.c,v 1.151 2011/02/06 21:44:36 kristaps Exp $ */ +/* $Id: mdoc_html.c,v 1.152 2011/02/06 23:02:31 schwarze Exp $ */ /* - * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons + * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -806,6 +806,7 @@ mdoc_xx_pre(MDOC_ARGS) { const char *pp; struct htmlpair tag; + int flags; switch (n->tok) { case (MDOC_Bsx): @@ -835,9 +836,10 @@ mdoc_xx_pre(MDOC_ARGS) print_text(h, pp); if (n->child) { + flags = h->flags; h->flags |= HTML_KEEP; print_text(h, n->child->string); - h->flags &= ~HTML_KEEP; + h->flags = flags; } return(0); }