Merge pull request #4 from edsantiago/pr2389_update

update: remove duplicate newline
This commit is contained in:
Brent Baude
2019-02-21 15:21:27 -06:00
committed by GitHub

View File

@ -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()