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

Merge pull request #26282 from mstanleyjones/26280_fix_pretty_print

`docker node inspect <node> --pretty`  needs an extra newline at the end
This commit is contained in:
Vincent Demeester 2016-09-06 16:04:55 +02:00 committed by GitHub
commit 5c6b54c278

View file

@ -71,6 +71,8 @@ func printHumanFriendly(out io.Writer, refs []string, getRef inspect.GetRefFunc)
// print extra space between objects, but not after the last one
if idx+1 != len(refs) {
fmt.Fprintf(out, "\n\n")
} else {
fmt.Fprintf(out, "\n")
}
}
return nil