1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

fix display on test

This commit is contained in:
Victor Vieux 2013-11-28 14:40:17 -08:00
parent ebc36b879d
commit b36dd3f9cc

View file

@ -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 {