=================================================================== RCS file: /cvs/mandoc/mdoc_html.c,v retrieving revision 1.94 retrieving revision 1.97 diff -u -p -r1.94 -r1.97 --- mandoc/mdoc_html.c 2010/07/06 12:37:17 1.94 +++ mandoc/mdoc_html.c 2010/07/19 11:06:31 1.97 @@ -1,6 +1,6 @@ -/* $Id: mdoc_html.c,v 1.94 2010/07/06 12:37:17 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 @@ -30,7 +30,6 @@ #include "mandoc.h" #include "out.h" #include "html.h" -#include "regs.h" #include "mdoc.h" #include "main.h" @@ -1738,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; }