aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cli
diff options
context:
space:
mode:
authorRenaud Guezennec <renaud@rolisteam.org>2021-02-05 02:36:07 +0000
committerRenaud Guezennec <renaud@rolisteam.org>2021-02-05 02:36:07 +0000
commit4f528537ad07f93aca5952949f4960e5e88e2072 (patch)
tree1e327231c844150b4bc35104cb13d436d7c711b7 /cli
parent6753fff63d4bc3916388b1bfbc668980330887d8 (diff)
downloadOneRoll-4f528537ad07f93aca5952949f4960e5e88e2072.tar.gz
OneRoll-4f528537ad07f93aca5952949f4960e5e88e2072.zip
Fix output oneline
Diffstat (limited to 'cli')
-rw-r--r--cli/main.cpp5
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";
}