source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mandoc: In PostScript and PDF output, one AFM unit is not nearly enough
@ 2019-01-15 12:16 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2019-01-15 12:16 UTC (permalink / raw)
  To: source

Log Message:
-----------
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).

Modified Files:
--------------
    mandoc:
        term.c

Revision Data
-------------
Index: term.c
===================================================================
RCS file: /home/cvs/mandoc/mandoc/term.c,v
retrieving revision 1.279
retrieving revision 1.280
diff -Lterm.c -Lterm.c -u -p -r1.279 -r1.280
--- term.c
+++ term.c
@@ -374,8 +374,9 @@ term_field(struct termp *p, size_t vbl, 
 			continue;
 		case ' ':
 		case ASCII_NBRSP:
-			vbl++;
-			vis++;
+			dv = (*p->width)(p, ' ');
+			vbl += dv;
+			vis += dv;
 			continue;
 		default:
 			break;
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-01-15 12:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-15 12:16 mandoc: In PostScript and PDF output, one AFM unit is not nearly enough schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).