summaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-06-04 22:26:13 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-06-04 22:26:13 +0000
commite5ea753eb8a3d3f842905f089a5cd3c43d34370a (patch)
treeeb2cd72ef9db8ccb3f282fd9be2597325d65abc3 /mdoc_html.c
parent7f67988eac2d1c3957c780d882706906cbb3b441 (diff)
downloadmandoc-e5ea753eb8a3d3f842905f089a5cd3c43d34370a.tar.gz
mandoc-e5ea753eb8a3d3f842905f089a5cd3c43d34370a.tar.zst
mandoc-e5ea753eb8a3d3f842905f089a5cd3c43d34370a.zip
Fix following the first: `Ft' is given special treatment if specified before
`Fn'.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 41f7000d..6ebbfe7f 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.75 2010/06/04 22:16:27 kristaps Exp $ */
+/* $Id: mdoc_html.c,v 1.76 2010/06/04 22:26:13 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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);