diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2019-01-15 12:16:18 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2019-01-15 12:16:18 +0000 |
commit | 9e2b86ff9d14ef40a2d3e80e6164eaa343e4face (patch) | |
tree | 0f902e66aa26299b180f1913d1f12ddeaa2fc83b /term.c | |
parent | 6cb1ffbb0c8669ce4942fa0380b0004a35db885d (diff) | |
download | mandoc-9e2b86ff9d14ef40a2d3e80e6164eaa343e4face.tar.gz mandoc-9e2b86ff9d14ef40a2d3e80e6164eaa343e4face.tar.zst mandoc-9e2b86ff9d14ef40a2d3e80e6164eaa343e4face.zip |
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.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.279 2019/01/04 03:21:02 schwarze Exp $ */ +/* $Id: term.c,v 1.280 2019/01/15 12:16:18 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2019 Ingo Schwarze <schwarze@openbsd.org> @@ -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; |