1
0
mirror of https://github.com/jstemmer/go-junit-report.git synced 2025-04-12 00:28:07 -05:00

Do not trim output whitespace prefix

Whitespace prefix of output lines was carried over from the old v1
version, but in some cases it removes too much whitespace. Ideally it
would detect the common prefix of all output lines for a given text and
only trim that. Until that's fixed, let's just stop removing the
whitespace.

Fixes 
This commit is contained in:
Joël Stemmer 2022-05-13 21:01:49 +01:00
parent 4976b9b9ae
commit 7c195be87f
13 changed files with 51 additions and 51 deletions

@ -259,7 +259,7 @@ func formatBenchmarkTime(d time.Duration) string {
func formatOutput(output []string, indent int) string {
var lines []string
for _, line := range output {
lines = append(lines, gtr.TrimPrefixSpaces(line, indent))
lines = append(lines, line)
}
return strings.Join(lines, "\n")
}