We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa716cf commit f2b5132Copy full SHA for f2b5132
test/Microsoft.OpenApi.Tests/StringExtensions.cs
@@ -18,7 +18,9 @@ public static string MakeLineBreaksEnvironmentNeutral(this string input)
18
{
19
return input.Replace("\r\n", "\n")
20
.Replace('\r', '\n')
21
- .Replace("\n", Environment.NewLine);
+ .Replace("\n", Environment.NewLine)
22
+ .Replace($" {Environment.NewLine}", Environment.NewLine)// also cleanup new lines preceded with spaces
23
+ .TrimEnd();
24
}
25
26
0 commit comments