summaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-17 11:19:42 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-17 11:19:42 +0000
commit0d7d22d32950c90e48005ba8e864e320f5faeb18 (patch)
tree3a4b36b0ea1d5293370e38b4f5ca27fe9cb25f76 /mdoc_html.c
parent18101a1e6bbc969a708aece2adcda78ae826d6a6 (diff)
downloadmandoc-0d7d22d32950c90e48005ba8e864e320f5faeb18.tar.gz
mandoc-0d7d22d32950c90e48005ba8e864e320f5faeb18.tar.zst
mandoc-0d7d22d32950c90e48005ba8e864e320f5faeb18.zip
Prevent double-printing of `D1' or `Dl' DIV.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index be680be2..e95cd4ac 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.128 2010/12/17 11:01:24 kristaps Exp $ */
+/* $Id: mdoc_html.c,v 1.129 2010/12/17 11:19:42 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -1064,13 +1064,12 @@ mdoc_d1_pre(MDOC_ARGS)
/* BLOCKQUOTE needs a block body. */
- if (MDOC_Dl == n->tok) {
+ if (MDOC_Dl == n->tok)
PAIR_CLASS_INIT(&tag[0], "lit display");
- print_otag(h, TAG_DIV, 1, tag);
- } else
+ else
PAIR_CLASS_INIT(&tag[0], "display");
- print_otag(h, TAG_DIV, 1, tag);
+ print_otag(h, TAG_DIV, 1, tag);
return(1);
}