diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-14 17:51:15 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-14 17:51:15 +0000 |
commit | d687586337f23b878d3678fc908d2c30b540a058 (patch) | |
tree | 4690c1992cd85292996a523727c3307ab8f10c45 /roff_term.c | |
parent | 98b1f2affc51ab2505cc48390d8ea926eaac9e03 (diff) | |
download | mandoc-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 'roff_term.c')
-rw-r--r-- | roff_term.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <schwarze@openbsd.org> * @@ -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; |