aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tbl_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-06-14 17:51:15 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-06-14 17:51:15 +0000
commitd687586337f23b878d3678fc908d2c30b540a058 (patch)
tree4690c1992cd85292996a523727c3307ab8f10c45 /tbl_term.c
parent98b1f2affc51ab2505cc48390d8ea926eaac9e03 (diff)
downloadmandoc-d687586337f23b878d3678fc908d2c30b540a058.tar.gz
mandoc-d687586337f23b878d3678fc908d2c30b540a058.tar.zst
mandoc-d687586337f23b878d3678fc908d2c30b540a058.zip
improve rounding rules for scaling units
in horizontal orientation in the terminal formatter
Diffstat (limited to 'tbl_term.c')
-rw-r--r--tbl_term.c4
1 files changed, 2 insertions, 2 deletions
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 <kristaps@bsd.lv>
* Copyright (c) 2011,2012,2014,2015,2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -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