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:
parent
cd091b6a0c
commit
196c54cffa
1 changed files with 1 additions and 1 deletions
2
main.c
2
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue