From 9312af4f7990949a201c1bd8a25771a49bb12eea Mon Sep 17 00:00:00 2001 From: Zach Loafman Date: Tue, 6 Jan 2015 08:08:19 -0800 Subject: [PATCH] Fix newlines in TAP stdout/stderr output It turns out, newlines are not "printable", causing the TAP stderr/stdout output to be smushed. Also address etune's comment on pr3208. --- hack/e2e.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hack/e2e.go b/hack/e2e.go index b4a7fabdc42..cbb87310b44 100644 --- a/hack/e2e.go +++ b/hack/e2e.go @@ -499,10 +499,12 @@ func printBashOutputs(headerprefix, lineprefix, stdout, stderr string, escape bo func escapeOutput(s string) (out string) { for _, r := range s { switch { + case r == '\n': + out += string(r) case !strconv.IsPrint(r): out += " " case r == ':': - out += "\u02D0" // "ː", MODIFIER LETTER TRIANGULAR COLON + out += "\ua789" // "꞉", modifier letter colon default: out += string(r) }