From 12b85599ecf5c2cdab8459b8ce15492c7027ea30 Mon Sep 17 00:00:00 2001 From: Andre Hartmann Date: Sat, 23 Nov 2024 16:20:38 +0100 Subject: [PATCH] Git: InstantBlame: Remove trailing newline from output Change-Id: Ia2caff14104811255e1eddd036573c4a8a1f9a5d Reviewed-by: Orgad Shaneh --- src/plugins/git/instantblame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/git/instantblame.cpp b/src/plugins/git/instantblame.cpp index 5a87cf06442..0eb491c3372 100644 --- a/src/plugins/git/instantblame.cpp +++ b/src/plugins/git/instantblame.cpp @@ -382,7 +382,7 @@ void InstantBlame::perform() const Utils::FilePath workingDirectory = Utils::FilePath::fromString(fi.path()); const QString lineString = QString("%1,%1").arg(line); const auto lineDiffHandler = [this](const CommandResult &result) { - const QString error = result.cleanedStdErr(); + const QString error = result.cleanedStdErr().trimmed(); if (!error.isEmpty()) { qCWarning(log) << error; }