From 196c54cffaf80950e7fbf1ff570f295451bf86f0 Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 27 May 2025 02:09:21 +0200 Subject: [PATCH] change newline termination behaviour when encoding Before, encoded text would be newline terminated by default. This was supposed to make short encoded strings easier to read when using an interactive shell. Now this only happens with the explicit line wrap option. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index bedae82..0cf51bc 100644 --- a/main.c +++ b/main.c @@ -65,7 +65,7 @@ main(int argc, char *argv[]) fprintf((argc == 2) ? out : stdout, "%s", sbuf); } } - if (!wrp || l != '\n') + if (wrp && l != '\n') fprintf((argc == 2) ? out : stdout, "\n"); } if (in)