Skip to content

Commit b174aa5

Browse files
committed
Fix line ending generation
1 parent 0d35169 commit b174aa5

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* text=auto
55

66
# C# files should use CRLF.
7+
*.tt text eol=crlf
78
*.cs text eol=crlf
89

910
# C++ files should use CRLF.

package/Codegen/Program.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,6 @@ private static string PackageRoot
535535

536536
private static bool UpdateFile(string path, string newContent)
537537
{
538-
newContent = newContent.Replace("\r", "");
539538
var existing = File.Exists(path) ? File.ReadAllText(path) : "";
540539
if (existing != newContent)
541540
{

0 commit comments

Comments
 (0)