From d687586337f23b878d3678fc908d2c30b540a058 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 14 Jun 2017 17:51:15 +0000 Subject: improve rounding rules for scaling units in horizontal orientation in the terminal formatter --- tbl_term.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tbl_term.c') diff --git a/tbl_term.c b/tbl_term.c index 4104f0ad..c7c1b07c 100644 --- a/tbl_term.c +++ b/tbl_term.c @@ -1,4 +1,4 @@ -/* $Id: tbl_term.c,v 1.51 2017/06/13 14:39:13 schwarze Exp $ */ +/* $Id: tbl_term.c,v 1.52 2017/06/14 17:51:15 schwarze Exp $ */ /* * Copyright (c) 2009, 2011 Kristaps Dzonsons * Copyright (c) 2011,2012,2014,2015,2017 Ingo Schwarze @@ -47,7 +47,7 @@ static void tbl_word(struct termp *, const struct tbl_dat *); static size_t term_tbl_sulen(const struct roffsu *su, void *arg) { - return term_hspan((const struct termp *)arg, su) / 24; + return term_hen((const struct termp *)arg, su); } static size_t -- cgit v1.2.3-56-ge451