=================================================================== RCS file: /cvs/mandoc/mdoc_html.c,v retrieving revision 1.74 retrieving revision 1.76 diff -u -p -r1.74 -r1.76 --- mandoc/mdoc_html.c 2010/06/04 21:49:39 1.74 +++ mandoc/mdoc_html.c 2010/06/04 22:26:13 1.76 @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.74 2010/06/04 21:49:39 kristaps Exp $ */ +/* $Id: mdoc_html.c,v 1.76 2010/06/04 22:26:13 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -1584,11 +1584,16 @@ mdoc_fn_pre(MDOC_ARGS) int sz, i; struct roffsu su; - if (SEC_SYNOPSIS == n->sec && MDOC_LINE & n->flags) { + /* NB: MDOC_LINE has no effect on this macro! */ + if (SEC_SYNOPSIS == n->sec) { SCALE_HS_INIT(&su, INDENT); bufcat_su(h, "margin-left", &su); su.scale = -su.scale; bufcat_su(h, "text-indent", &su); + if (n->prev && MDOC_Ft != n->prev->tok) { + SCALE_VS_INIT(&su, 1); + bufcat_su(h, "margin-top", &su); + } if (n->next) { SCALE_VS_INIT(&su, 1); bufcat_su(h, "margin-bottom", &su);