From b36dd3f9ccc61e42024cf1f2799c73f0efc77c75 Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Thu, 28 Nov 2013 14:40:17 -0800 Subject: [PATCH] fix display on test --- utils/streamformatter.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/utils/streamformatter.go b/utils/streamformatter.go index a28cd5050e..60863d2aa6 100644 --- a/utils/streamformatter.go +++ b/utils/streamformatter.go @@ -60,7 +60,11 @@ func (sf *StreamFormatter) FormatProgress(id, action string, progress *JSONProgr } return b } - return []byte(action + " " + progress.String() + "\r") + endl := "\r" + if progress.String() == "" { + endl += "\n" + } + return []byte(action + " " + progress.String() + endl) } func (sf *StreamFormatter) Used() bool {