From 0466b4b6036f1c9b82b3ca73d5df9232b725e362 Mon Sep 17 00:00:00 2001 From: Dennis Boone Date: Tue, 27 Jul 2021 14:59:27 -0400 Subject: [PATCH] Emit mark parity space(s) in the "less than three" case, not space parity ones. Discovered by Daiyu. --- util/utextp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/utextp.c b/util/utextp.c index d96db96..7deb6aa 100644 --- a/util/utextp.c +++ b/util/utextp.c @@ -1,5 +1,5 @@ /* utextp.c, Jim Wilcoxson, March 16, 2005 - Reads a Unix text file and converts it to a compressed Prime text file. + Reads a Unix text file and converts it to a compressed Prime text file. This means: - turn high bit on - expand Unix tabs to spaces @@ -29,7 +29,7 @@ main () { else { /* not a space character */ while (space) { /* dump held-back spaces first */ if (space < 3) { /* write regular spaces */ - putchar(' '); + putchar(0240); space--; n++; } else { /* write compressed spaces */