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 --- roff_term.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roff_term.c') diff --git a/roff_term.c b/roff_term.c index bfcb2d0f..db59db08 100644 --- a/roff_term.c +++ b/roff_term.c @@ -1,4 +1,4 @@ -/* $Id: roff_term.c,v 1.11 2017/06/14 13:00:31 schwarze Exp $ */ +/* $Id: roff_term.c,v 1.12 2017/06/14 17:51:15 schwarze Exp $ */ /* * Copyright (c) 2010, 2014, 2015, 2017 Ingo Schwarze * @@ -205,7 +205,7 @@ roff_term_pre_ti(ROFF_TERM_ARGS) if (a2roffsu(cp, &su, SCALE_EM) == NULL) return; - len = term_hspan(p, &su) / 24; + len = term_hen(p, &su); if (sign == 0) { p->ti = len - p->tcol->offset; -- cgit v1.2.3