summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c4
1 files changed, 4 insertions, 0 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);