From ad3ccd69f93da31f1002c2c9f6dccec3df9ab5b7 Mon Sep 17 00:00:00 2001 From: baude Date: Wed, 20 Feb 2019 16:44:23 -0600 Subject: add newline to images output ensure a final newline is always added to images output. fixes #2388 Signed-off-by: baude --- cmd/podman/formats/formats.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd') diff --git a/cmd/podman/formats/formats.go b/cmd/podman/formats/formats.go index c454c39bd..d063d1e2b 100644 --- a/cmd/podman/formats/formats.go +++ b/cmd/podman/formats/formats.go @@ -125,6 +125,7 @@ func (t StdoutTemplateArray) Out() error { fmt.Fprintln(w, "") } } + fmt.Fprintln(w, "") return w.Flush() } -- cgit v1.2.3-54-g00ecf From bd354ad3ccd0ad85571958aef20c7d7ab903204d Mon Sep 17 00:00:00 2001 From: Ed Santiago Date: Thu, 21 Feb 2019 06:08:57 -0700 Subject: update: remove duplicate newline Signed-off-by: Ed Santiago --- cmd/podman/formats/formats.go | 4 ---- 1 file changed, 4 deletions(-) (limited to 'cmd') diff --git a/cmd/podman/formats/formats.go b/cmd/podman/formats/formats.go index d063d1e2b..37f9b8a20 100644 --- a/cmd/podman/formats/formats.go +++ b/cmd/podman/formats/formats.go @@ -120,10 +120,6 @@ 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() -- cgit v1.2.3-54-g00ecf