From d56b0f3528ad9047e4560996ea38d0445597da82 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 9 Jul 1996 01:41:20 +0000 Subject: (_ps_stream_write_field): If a field is truncatable (MAX_WIDTH >= 0), take some of our spacing deficit out of it. --- libps/write.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libps/write.c') diff --git a/libps/write.c b/libps/write.c index 3c57f94f..725ea288 100644 --- a/libps/write.c +++ b/libps/write.c @@ -189,6 +189,10 @@ _ps_stream_write_field (struct ps_stream *stream, while (isspace (*buf)) buf++; + if (stream->spaces < 0 && max_width >= 0) + /* Take some of our spacing deficit out of a truncatable field. */ + max_width += stream->spaces; + len = noise_len (buf, max_width); if (width > 0) -- cgit v1.2.3