From 4f528537ad07f93aca5952949f4960e5e88e2072 Mon Sep 17 00:00:00 2001 From: Renaud Guezennec Date: Fri, 5 Feb 2021 02:36:07 +0000 Subject: Fix output oneline --- cli/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cli/main.cpp') 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"; } -- cgit v1.2.3-70-g09d2