VCS: Append newlines to system messages in output pane

Change-Id: I3ca2d2e90ea0a97dd75feb7d1f8220564a138fb5
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Orgad Shaneh
2022-05-13 09:36:26 +03:00
committed by Orgad Shaneh
parent 995a464f46
commit a2797ec80e
2 changed files with 5 additions and 5 deletions

View File

@@ -2916,9 +2916,9 @@ bool GitClient::getCommitData(const FilePath &workingDirectory,
static inline QString msgCommitted(const QString &amendSHA1, int fileCount)
{
if (amendSHA1.isEmpty())
return GitClient::tr("Committed %n files.", nullptr, fileCount) + '\n';
return GitClient::tr("Committed %n files.", nullptr, fileCount);
if (fileCount)
return GitClient::tr("Amended \"%1\" (%n files).", nullptr, fileCount).arg(amendSHA1) + '\n';
return GitClient::tr("Amended \"%1\" (%n files).", nullptr, fileCount).arg(amendSHA1);
return GitClient::tr("Amended \"%1\".").arg(amendSHA1);
}