From 79753fd33236faee7509d5916f508ca56523b6f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=ABl=20Stemmer?= Date: Sun, 6 Oct 2019 17:43:06 +0100 Subject: [PATCH] parser/gotest: Trim tab prefix from output --- pkg/parser/gotest/gotest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/parser/gotest/gotest.go b/pkg/parser/gotest/gotest.go index b82bf91..6a89e3a 100644 --- a/pkg/parser/gotest/gotest.go +++ b/pkg/parser/gotest/gotest.go @@ -126,7 +126,7 @@ func (p *parser) benchmark(name, iterations, nsPerOp, mbPerSec, bytesPerOp, allo } func (p *parser) output(line string) { - p.add(gtr.Event{Type: "output", Data: line}) + p.add(gtr.Event{Type: "output", Data: strings.TrimPrefix(line, "\t")}) } func parseSeconds(s string) time.Duration {