From b746353a05b8aa9d139a3058dfc846eb7c978997 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 23 Dec 2014 09:31:46 +0000 Subject: 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 --- man_html.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'man_html.c') 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 * Copyright (c) 2013, 2014 Ingo Schwarze @@ -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; -- cgit v1.2.3-56-ge451