summaryrefslogtreecommitdiff
path: root/libps/write.c
diff options
context:
space:
mode:
Diffstat (limited to 'libps/write.c')
-rw-r--r--libps/write.c4
1 files changed, 4 insertions, 0 deletions
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)