From 7d5ed837a4a55cbfad3d41a850433ac583fda67c Mon Sep 17 00:00:00 2001 From: Cristhian Amaya Date: Tue, 6 Nov 2018 11:41:38 +0100 Subject: [PATCH] Remove break lines in commit messages Breaklines in a csv report caused issues when importing the data to an spreadsheet application like LibreOffice Calc or Microsoft Excel. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index e2f1a91a..0a0ea15d 100644 --- a/main.go +++ b/main.go @@ -523,7 +523,7 @@ func auditGitReference(repo *RepoDescriptor, ref *plumbing.Reference) []Leak { content: chunk.Content(), sha: c.Hash.String(), author: c.Author.String(), - message: c.Message, + message: strings.Replace(c.Message, "\n", " ", -1), date: c.Author.When, } chunkLeaks := inspect(diff)