diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2019-01-15 12:15:53 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2019-01-15 12:15:53 +0000 |
commit | a043e375518d6d5743259a43681f177b5617ba0e (patch) | |
tree | 6f37b909765b6b894c89ad8c5ecdf559d6de7572 /usr.bin/mandoc/term.c | |
parent | 9dfb87dd115fe98acd7143968c340bc2abe6ee14 (diff) |
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.138,
reported by brynet@ (sorry and many thanks for reporting).
Diffstat (limited to 'usr.bin/mandoc/term.c')
-rw-r--r-- | usr.bin/mandoc/term.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/mandoc/term.c b/usr.bin/mandoc/term.c index ceebbb86141..cf83a22275b 100644 --- a/usr.bin/mandoc/term.c +++ b/usr.bin/mandoc/term.c @@ -1,4 +1,4 @@ -/* $OpenBSD: term.c,v 1.139 2019/01/04 03:20:44 schwarze Exp $ */ +/* $OpenBSD: term.c,v 1.140 2019/01/15 12:15:52 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2019 Ingo Schwarze <schwarze@openbsd.org> @@ -372,8 +372,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; |