diff options
-rw-r--r-- | mdoc_html.c | 4 | ||||
-rw-r--r-- | mdoc_term.c | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/mdoc_html.c b/mdoc_html.c index f14b8fc5..21395f0e 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1590,6 +1590,10 @@ mdoc_fn_pre(MDOC_ARGS) 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); diff --git a/mdoc_term.c b/mdoc_term.c index 63f63186..6e023feb 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1538,7 +1538,9 @@ termp_fn_pre(DECL_ARGS) /* NB: MDOC_LINE has no effect on this macro! */ if (SEC_SYNOPSIS == n->sec) { - if (n->prev) + if (n->prev && MDOC_Ft == n->prev->tok) + term_newln(p); + else if (n->prev) term_vspace(p); } |