mirror of https://github.com/docker/docs.git
fix display on test
This commit is contained in:
parent
ebc36b879d
commit
b36dd3f9cc
|
@ -60,7 +60,11 @@ func (sf *StreamFormatter) FormatProgress(id, action string, progress *JSONProgr
|
||||||
}
|
}
|
||||||
return b
|
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 {
|
func (sf *StreamFormatter) Used() bool {
|
||||||
|
|
Loading…
Reference in New Issue