From eed6ece45bffdd1e90478d0e976efee8fd1c2874 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 11 Aug 2013 23:19:13 -0700 Subject: [PATCH] packer: replace \r with literal on Ui for MR --- packer/ui.go | 1 + 1 file changed, 1 insertion(+) diff --git a/packer/ui.go b/packer/ui.go index 8a869aab6..3d82b281a 100644 --- a/packer/ui.go +++ b/packer/ui.go @@ -270,6 +270,7 @@ func (u *MachineReadableUi) Machine(category string, args ...string) { // Prepare the args for i, v := range args { args[i] = strings.Replace(v, ",", "%!(PACKER_COMMA)", -1) + args[i] = strings.Replace(args[i], "\r", "\\r", -1) args[i] = strings.Replace(args[i], "\n", "\\n", -1) } argsString := strings.Join(args, ",")