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.
This commit is contained in:
Eric 2025-05-27 02:09:21 +02:00
parent cd091b6a0c
commit f6b683fe0b

2
main.c
View file

@ -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)