aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-12-23 09:31:46 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-12-23 09:31:46 +0000
commitb746353a05b8aa9d139a3058dfc846eb7c978997 (patch)
tree148663f150cd664bbc197e0cecd0dbb1c442a185 /man_html.c
parent5d42210e3b9f8220e4026cbeb581e5953e7bd23d (diff)
downloadmandoc-b746353a05b8aa9d139a3058dfc846eb7c978997.tar.gz
mandoc-b746353a05b8aa9d139a3058dfc846eb7c978997.tar.zst
mandoc-b746353a05b8aa9d139a3058dfc846eb7c978997.zip
some scaling unit fixes:
- .sp with an invalid argument is .sp 1v, not .sp 0v - in man(1), trailing garbage doesn't make scaling units invalid
Diffstat (limited to 'man_html.c')
-rw-r--r--man_html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/man_html.c b/man_html.c
index 1455e1e4..171a6df6 100644
--- a/man_html.c
+++ b/man_html.c
@@ -1,4 +1,4 @@
-/* $Id: man_html.c,v 1.107 2014/12/04 02:05:42 schwarze Exp $ */
+/* $Id: man_html.c,v 1.108 2014/12/23 09:31:46 schwarze Exp $ */
/*
* Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -362,7 +362,7 @@ man_br_pre(MAN_ARGS)
if (MAN_sp == n->tok) {
if (NULL != (n = n->child))
if ( ! a2roffsu(n->string, &su, SCALE_VS))
- SCALE_VS_INIT(&su, atoi(n->string));
+ su.scale = 1.0;
} else
su.scale = 0.0;