Skip to content

Commit 590cb93

Browse files
committed
Try again
1 parent 5f9a9af commit 590cb93

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

FSharp.AutoComplete/test/integration/TestHelpers.fsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ let formatJson json =
6060
JsonConvert.SerializeObject(parsedJson, Formatting.Indented)
6161

6262
let writeNormalizedOutput (fn: string) (s: string) =
63-
let lines = s.TrimEnd().Split([|Environment.NewLine|], StringSplitOptions.None)
63+
let lines = s.TrimEnd().Split('\n')
6464
for i in [ 0 .. lines.Length - 1 ] do
6565
if Path.DirectorySeparatorChar = '/' then
6666
lines.[i] <- Regex.Replace(lines.[i],
@@ -84,7 +84,8 @@ let writeNormalizedOutput (fn: string) (s: string) =
8484

8585
if Path.GetExtension fn = ".json" then
8686
lines.[i] <- formatJson lines.[i]
87-
lines.[i] <- lines.[i].Replace(Environment.NewLine, "\n")
87+
88+
lines.[i] <- lines.[i].Replace("\r", "")
8889

8990
// Write manually to ensure \n line endings on all platforms
9091
using (new StreamWriter(fn))

0 commit comments

Comments
 (0)