summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-02-22 00:03:40 +0100
committerGitHub <noreply@github.com>2019-02-22 00:03:40 +0100
commit1788addd047310ee8b8c7a62d8949953b93cfca7 (patch)
tree162228b4ec22c51cab31659e0e355a28fca21163
parenteb6243226a08254f15657c3728bb4dd8949ee6cd (diff)
parent3447edd2eccd73dd9123385eb31e4630f6b8b949 (diff)
downloadpodman-1788addd047310ee8b8c7a62d8949953b93cfca7.tar.gz
podman-1788addd047310ee8b8c7a62d8949953b93cfca7.tar.bz2
podman-1788addd047310ee8b8c7a62d8949953b93cfca7.zip
Merge pull request #2389 from baude/issue2388
add newline to images output
-rw-r--r--cmd/podman/formats/formats.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/cmd/podman/formats/formats.go b/cmd/podman/formats/formats.go
index c454c39bd..37f9b8a20 100644
--- a/cmd/podman/formats/formats.go
+++ b/cmd/podman/formats/formats.go
@@ -120,11 +120,8 @@ func (t StdoutTemplateArray) Out() error {
fmt.Fprintln(w, "")
continue
}
- // Only print new line at the end of the output if stdout is the terminal
- if terminal.IsTerminal(int(os.Stdout.Fd())) {
- fmt.Fprintln(w, "")
- }
}
+ fmt.Fprintln(w, "")
return w.Flush()
}