Commit 823d878b authored by Eric Tune's avatar Eric Tune

Merge pull request #3246 from zmerlynn/newline_printable

Fix newlines in TAP stdout/stderr output
parents 22a241aa 9312af4f
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment