Commit c2236e9b authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer: Only trim whitespace on the right of prefixed UI

parent 074d2bf9
......@@ -10,6 +10,7 @@ import (
"os/signal"
"strings"
"sync"
"unicode"
)
type UiColor uint
......@@ -110,7 +111,7 @@ func (u *PrefixedUi) prefixLines(prefix, message string) string {
result.WriteString(fmt.Sprintf("%s: %s\n", prefix, line))
}
return strings.TrimSpace(result.String())
return strings.TrimRightFunc(result.String(), unicode.IsSpace)
}
func (rw *ReaderWriterUi) Ask(query string) (string, error) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment