summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-12-02 10:16:55 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-12-02 10:16:55 +0000
commitc5b2462b76dc92a73a1f5ae0226aea1b37d83f0e (patch)
tree0a463a06c5fce71604f9af38bc4f39210b3121e7 /mdoc_html.c
parent82b5314b2fdf0873bca2c21af698ee6b3525efb2 (diff)
downloadmandoc-c5b2462b76dc92a73a1f5ae0226aea1b37d83f0e.tar.gz
Fixed handling of exampledir (pointed out by Ulrich Sporlein, forgotten, discovered again).
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index c415909c..66ce08c7 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1573,9 +1573,9 @@ mdoc_vt_pre(MDOC_ARGS)
struct roffsu su;
if (SEC_SYNOPSIS == n->sec) {
- if (n->next && MDOC_Vt != n->next->tok) {
+ if (n->prev && MDOC_Vt != n->prev->tok) {
SCALE_VS_INIT(&su, 1);
- bufcat_su(h, "margin-bottom", &su);
+ bufcat_su(h, "margin-top", &su);
PAIR_STYLE_INIT(&tag, h);
print_otag(h, TAG_DIV, 1, &tag);
} else