From 89dbe2deffaf7a89e8e099886a15c286a46b73ae Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Tue, 13 Feb 2018 14:46:57 -0500 Subject: [PATCH] Add newline on non-ttl output (#3967) Output is formatted with newlines in mind, so without this those get lost and things get funky due to multiple outputs running together. --- command/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/command/main.go b/command/main.go index 824b80fa6c..6ed2236dd3 100644 --- a/command/main.go +++ b/command/main.go @@ -23,7 +23,9 @@ func (u *VaultUI) Output(m string) { if u.isTerminal { u.Ui.Output(m) } else { - getWriterFromUI(u.Ui).Write([]byte(m)) + writer := getWriterFromUI(u.Ui) + writer.Write([]byte(m)) + writer.Write([]byte("\n")) } }