summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mdoc_html.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2010-05-23 20:05:43 +0000
committerschwarze <schwarze@openbsd.org>2010-05-23 20:05:43 +0000
commit3af621822c46fda6e73a88c62c7c4f9039c39b77 (patch)
tree331b725816da2bb8766a050df52ef3510d591873 /usr.bin/mandoc/mdoc_html.c
parentPass in the session, rather than the client, to window modes' key() (diff)
downloadwireguard-openbsd-3af621822c46fda6e73a88c62c7c4f9039c39b77.tar.xz
wireguard-openbsd-3af621822c46fda6e73a88c62c7c4f9039c39b77.zip
Small fix for `D1' and `Bd' in -Thtml; from kristaps@.
Diffstat (limited to 'usr.bin/mandoc/mdoc_html.c')
-rw-r--r--usr.bin/mandoc/mdoc_html.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/mandoc/mdoc_html.c b/usr.bin/mandoc/mdoc_html.c
index 1915d571598..48ee6ae7338 100644
--- a/usr.bin/mandoc/mdoc_html.c
+++ b/usr.bin/mandoc/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.15 2010/05/15 18:25:51 schwarze Exp $ */
+/* $Id: mdoc_html.c,v 1.16 2010/05/23 20:05:43 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -1285,7 +1285,7 @@ mdoc_d1_pre(MDOC_ARGS)
/* FIXME: D1 shouldn't be literal. */
- SCALE_VS_INIT(&su, INDENT - 2);
+ SCALE_VS_INIT(&su, INDENT - 1);
bufcat_su(h, "margin-left", &su);
PAIR_CLASS_INIT(&tag[0], "lit");
PAIR_STYLE_INIT(&tag[1], h);
@@ -1398,7 +1398,8 @@ mdoc_bd_pre(MDOC_ARGS)
break;
}
if (comp) {
- print_otag(h, TAG_DIV, 0, tag);
+ PAIR_STYLE_INIT(&tag[0], h);
+ print_otag(h, TAG_DIV, 1, tag);
return(1);
}
SCALE_VS_INIT(&su, 1);