Skip to content

Commit 2a0632e

Browse files
committed
fix newlines
1 parent 421dd5c commit 2a0632e

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
* text
1+
# Auto detect text files and normalize line endings to LF
2+
* text=auto eol=lf
23
*.snk binary
34
*.png binary
45

src/.editorconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ root = true
22

33
[*]
44
indent_style = space
5+
end_of_line = lf
6+
insert_final_newline = false
57

68
[*.cs]
79
indent_size = 4

src/ApiBuilderTests/Splitter.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ public static async Task Run()
295295
}
296296
lines.Insert(0,"#pragma warning disable");
297297
lines.Insert(0,"// <auto-generated />");
298-
await File.WriteAllLinesAsync(outputPath, lines);
298+
var content = string.Join("\n", lines) + "\n";
299+
await File.WriteAllTextAsync(outputPath, content);
299300
}
300301
}
301302
}

src/Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<PackageVersion Include="MarkdownSnippets.MsBuild" Version="28.0.0-beta.8" />
88
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="5.0.0" Pinned="true" />
99
<PackageVersion Include="TUnit" Version="1.5.70" />
10-
<PackageVersion Include="ProjectDefaults" Version="1.0.163" />
10+
<PackageVersion Include="ProjectDefaults" Version="1.0.166" />
1111
<PackageVersion Include="Microsoft.Bcl.Memory" Version="10.0.1" />
1212
<PackageVersion Include="ProjectFiles" Version="0.4.0" />
1313
<PackageVersion Include="System.Memory" Version="4.6.3" />

0 commit comments

Comments
 (0)