diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-05-23 20:05:44 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2010-05-23 20:05:44 +0000 |
commit | 44cf86e784c10ab0504c7392c4d899ed1103c95f (patch) | |
tree | d4a2850fe464dc5f89b6d173ffd40cd111b9fa5e /usr.bin/mandoc | |
parent | 559ee9138d9b84db8904b406e65a5c4490153566 (diff) |
Small fix for `D1' and `Bd' in -Thtml; from kristaps@.
Diffstat (limited to 'usr.bin/mandoc')
-rw-r--r-- | usr.bin/mandoc/mdoc_html.c | 7 |
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); |