File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
FSharp.AutoComplete/test/integration Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ let formatJson json =
6060 JsonConvert.SerializeObject( parsedJson, Formatting.Indented)
6161
6262let 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))
You can’t perform that action at this time.
0 commit comments