fix display on test

This commit is contained in:
Victor Vieux 2013-11-28 14:40:17 -08:00
parent ebc36b879d
commit b36dd3f9cc
1 changed files with 5 additions and 1 deletions

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 {