diff options
| author | 2021-02-05 02:36:07 +0000 | |
|---|---|---|
| committer | 2021-02-05 02:36:07 +0000 | |
| commit | 4f528537ad07f93aca5952949f4960e5e88e2072 (patch) | |
| tree | 1e327231c844150b4bc35104cb13d436d7c711b7 | |
| parent | 6753fff63d4bc3916388b1bfbc668980330887d8 (diff) | |
| download | OneRoll-4f528537ad07f93aca5952949f4960e5e88e2072.tar.gz OneRoll-4f528537ad07f93aca5952949f4960e5e88e2072.zip | |
Fix output oneline
| -rw-r--r-- | cli/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/main.cpp b/cli/main.cpp index db265f7..6ec10a5 100644 --- a/cli/main.cpp +++ b/cli/main.cpp @@ -285,7 +285,10 @@ void displayCommandResult(QString json, bool withColor) if(!comment.isEmpty()) { - out << "\033[1m" << comment << "\033[0m\n"; + if(withColor) + out << "\033[1m" << comment << "\033[0m\n"; + else + out << comment << " "; } out << str << "\n"; } |