Skip to content

Commit 364015d

Browse files
committed
Preserve original line ending behavior
(cherry picked from commit 66d0daa)
1 parent bd2d79c commit 364015d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sources/SilkTouch/SilkTouch/Mods/Common/MSBuildModContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ private static async Task<string> ToNormalisedStringAsync(
308308
CancellationToken ct = default
309309
)
310310
{
311-
var normalizedRoot = root.NormalizeWhitespace();
311+
var normalizedRoot = root.NormalizeWhitespace(eol: "\n");
312312
var result = await CodeFormatter.FormatAsync(normalizedRoot.SyntaxTree, _opts, ct);
313313
return !result.CompilationErrors.Any() ? result.Code : normalizedRoot.ToFullString();
314314
}

0 commit comments

Comments
 (0)