mirror of
https://github.com/hashicorp/packer.git
synced 2026-04-20 21:59:08 -04:00
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
18 lines
433 B
Go
18 lines
433 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
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")
|
|
}
|