From eb084e4397ca61b13a4422ab1842e66012fdda83 Mon Sep 17 00:00:00 2001 From: tjr Date: Wed, 19 Jun 2002 01:45:03 +0000 Subject: Don't convert a single space before a tab stop into a tab when the -i option is used. --- usr.bin/pr/pr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/pr/pr.c b/usr.bin/pr/pr.c index 754c7db..600d70e 100644 --- a/usr.bin/pr/pr.c +++ b/usr.bin/pr/pr.c @@ -1151,7 +1151,7 @@ otln(buf, cnt, svips, svops, mor) /* * got a non space char; contract out spaces */ - while (ops < ips) { + while (ips - ops > 1) { /* * use as many ochar as will fit */ @@ -1196,7 +1196,7 @@ otln(buf, cnt, svips, svops, mor) } if (mor < 0) { - while (ops < ips) { + while (ips - ops > 1) { /* * use as many ochar as will fit */ -- cgit v1.1