=================================================================== RCS file: /cvs/mandoc/mdoc_term.c,v retrieving revision 1.64 retrieving revision 1.65 diff -u -p -r1.64 -r1.65 --- mandoc/mdoc_term.c 2009/07/29 08:46:06 1.64 +++ mandoc/mdoc_term.c 2009/07/29 09:02:41 1.65 @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.64 2009/07/29 08:46:06 kristaps Exp $ */ +/* $Id: mdoc_term.c,v 1.65 2009/07/29 09:02:41 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -1399,12 +1399,17 @@ static int termp_sh_pre(DECL_ARGS) { /* - * FIXME: using two `Sh' macros in sequence has no vspace - * between calls, only a newline. + * XXX: undocumented: using two `Sh' macros in sequence has no + * vspace between calls, only a newline. */ switch (node->type) { - case (MDOC_HEAD): + case (MDOC_BLOCK): + if (node->prev && MDOC_Sh == node->prev->tok) + if (NULL == node->prev->body->child) + break; term_vspace(p); + break; + case (MDOC_HEAD): pair->flag |= ttypes[TTYPE_SECTION]; break; case (MDOC_BODY):