tests: fix line endings in windows
This commit is contained in:
parent
0deaa5d2a5
commit
0475b0529d
|
@ -0,0 +1,12 @@
|
|||
package command
|
||||
|
||||
import "strings"
|
||||
|
||||
func init() {
|
||||
spaghettiCarbonara = fixWindowsLineEndings(spaghettiCarbonara)
|
||||
lasagna = fixWindowsLineEndings(lasagna)
|
||||
}
|
||||
|
||||
func fixWindowsLineEndings(s string) string {
|
||||
return strings.ReplaceAll(s, "\n", " \r\n")
|
||||
}
|
Loading…
Reference in New Issue