Print last newline on Windows

If you use another shell in the Windows Terminal e.g. bash then it will look bad otherwise
This commit is contained in:
Aerocatia 2023-08-19 04:58:39 +12:00
parent 9fec269ad0
commit 9d13cb0630

View File

@ -414,10 +414,7 @@ int CLI::BINK1998Generate() {
if (this->options.verbose) { if (this->options.verbose) {
fmt::print("\nSuccess count: {}/{}", this->count, this->total); fmt::print("\nSuccess count: {}/{}", this->count, this->total);
} }
#ifndef _WIN32
fmt::print("\n"); fmt::print("\n");
#endif
return 0; return 0;
} }
@ -468,10 +465,7 @@ int CLI::BINK2002Generate() {
if (this->options.verbose) { if (this->options.verbose) {
fmt::print("\nSuccess count: {}/{}", this->count, this->total); fmt::print("\nSuccess count: {}/{}", this->count, this->total);
} }
#ifndef _WIN32
fmt::print("\n"); fmt::print("\n");
#endif
return 0; return 0;
} }
@ -544,9 +538,7 @@ int CLI::ConfirmationID() {
case SUCCESS: case SUCCESS:
fmt::print(confirmation_id); fmt::print(confirmation_id);
#ifndef _WIN32
fmt::print("\n"); fmt::print("\n");
#endif
return 0; return 0;
default: default: