summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2019-01-15 12:16:18 +0000
committerIngo Schwarze <schwarze@openbsd.org>2019-01-15 12:16:18 +0000
commit72e25eeca523e5195e5fb704b9c9c73c17acb405 (patch)
treed14522bab61586983a7226f8ad6f6f52f2290ac8 /term.c
parent350e158d591d60167745a0943344c02f339a89a1 (diff)
downloadmandoc-72e25eeca523e5195e5fb704b9c9c73c17acb405.tar.gz
In PostScript and PDF output, one AFM unit is not nearly enough
inter-word spacing, let's try again with 250 AFM units. Regression caused during my recent term_flushln() reorg in rev. 1.278, reported by brynet@ (sorry and many thanks for reporting).
Diffstat (limited to 'term.c')
-rw-r--r--term.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/term.c b/term.c
index af97796a..1c7cce6e 100644
--- a/term.c
+++ b/term.c
@@ -374,8 +374,9 @@ term_field(struct termp *p, size_t vbl, size_t nbr, size_t vbr, size_t vtarget)
continue;
case ' ':
case ASCII_NBRSP:
- vbl++;
- vis++;
+ dv = (*p->width)(p, ' ');
+ vbl += dv;
+ vis += dv;
continue;
default:
break;