You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
packer/command/build_windows_test.go

19 lines
435 B

// Copyright IBM Corp. 2013, 2025
// SPDX-License-Identifier: BUSL-1.1
package command
import "strings"
func init() {
spaghettiCarbonara = fixWindowsLineEndings(spaghettiCarbonara)
lasagna = fixWindowsLineEndings(lasagna)
tiramisu = fixWindowsLineEndings(tiramisu)
one = fixWindowsLineEndings(one)
two = fixWindowsLineEndings(two)
}
func fixWindowsLineEndings(s string) string {
return strings.ReplaceAll(s, "\n", " \r\n")
}