packer-cn/command/build_windows_test.go

14 lines
295 B
Go
Raw Normal View History

2020-07-06 11:53:08 -04:00
package command
import "strings"
func init() {
spaghettiCarbonara = fixWindowsLineEndings(spaghettiCarbonara)
lasagna = fixWindowsLineEndings(lasagna)
2020-07-07 06:00:36 -04:00
tiramisu = fixWindowsLineEndings(tiramisu)
2020-07-06 11:53:08 -04:00
}
func fixWindowsLineEndings(s string) string {
return strings.ReplaceAll(s, "\n", " \r\n")
}