=================================================================== RCS file: /cvs/mandoc/mdoc_html.c,v retrieving revision 1.95 retrieving revision 1.97 diff -u -p -r1.95 -r1.97 --- mandoc/mdoc_html.c 2010/07/07 15:04:54 1.95 +++ mandoc/mdoc_html.c 2010/07/19 11:06:31 1.97 @@ -1,6 +1,6 @@ -/* $Id: mdoc_html.c,v 1.95 2010/07/07 15:04:54 kristaps Exp $ */ +/* $Id: mdoc_html.c,v 1.97 2010/07/19 11:06:31 kristaps Exp $ */ /* - * Copyright (c) 2008, 2009 Kristaps Dzonsons + * Copyright (c) 2008, 2009, 2010 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 @@ -1737,6 +1737,11 @@ mdoc_sp_pre(MDOC_ARGS) len = 0; break; default: + assert(n->parent); + if ((NULL == n->next || NULL == n->prev) && + (MDOC_Ss == n->parent->tok || + MDOC_Sh == n->parent->tok)) + return(0); len = 1; break; }