aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-06 14:12:48 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-06 14:12:48 +0000
commit6da78159c4f30e5cbfe60fe6a244c73321edcb1c (patch)
tree259176a9694d932e26177c61e9e9ea76ea2c7a57 /man_html.c
parent29e0509b544d6b05f417032a73168abf89fcbda6 (diff)
downloadmandoc-6da78159c4f30e5cbfe60fe6a244c73321edcb1c.tar.gz
mandoc-6da78159c4f30e5cbfe60fe6a244c73321edcb1c.tar.zst
mandoc-6da78159c4f30e5cbfe60fe6a244c73321edcb1c.zip
Small merges from schwarze@'s man_html.c edits.
Diffstat (limited to 'man_html.c')
-rw-r--r--man_html.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/man_html.c b/man_html.c
index bb4ac449..69c0cbfa 100644
--- a/man_html.c
+++ b/man_html.c
@@ -1,4 +1,4 @@
-/* $Id: man_html.c,v 1.48 2010/12/06 14:07:01 kristaps Exp $ */
+/* $Id: man_html.c,v 1.49 2010/12/06 14:12:48 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -362,15 +362,11 @@ man_br_pre(MAN_ARGS)
SCALE_VS_INIT(&su, 1);
- switch (n->tok) {
- case (MAN_sp):
+ if (MAN_sp == n->tok) {
if (n->child)
a2roffsu(n->child->string, &su, SCALE_VS);
- break;
- default:
+ } else
su.scale = 0;
- break;
- }
bufcat_su(h, "height", &su);
PAIR_STYLE_INIT(&tag, h);