summaryrefslogtreecommitdiffstats
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
commit83592bae7b4cc86364128d1a37075c8d2ab3f14f (patch)
tree0c4bbf3561d1fd7d3645e88846d2a774680001dc /man_html.c
parentce8ab0a1bb72b1a1bf7fbc11edfcad682e7d1619 (diff)
downloadmandoc-83592bae7b4cc86364128d1a37075c8d2ab3f14f.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/man_html.c b/man_html.c
index efcaa51f..e91ec88c 100644
--- a/man_html.c
+++ b/man_html.c
@@ -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;