diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-12-23 09:31:46 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-12-23 09:31:46 +0000 |
commit | b746353a05b8aa9d139a3058dfc846eb7c978997 (patch) | |
tree | 148663f150cd664bbc197e0cecd0dbb1c442a185 /man_html.c | |
parent | 5d42210e3b9f8220e4026cbeb581e5953e7bd23d (diff) | |
download | mandoc-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |