Added an analyzer which keeps line breaks LF on every system (#1193)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-11 19:30:00 +01:00
1 parent b1c1f13993
commit 65d50de033
96 files changed
+741 -393

No files matched your search

+2 -2
View File
@@ -161,7 +161,7 @@ public sealed class FileExportFormatTests
using (Assert.EnterMultipleScope())
{
Assert.That(found, Is.True);
Assert.That(comment.Split(Environment.NewLine), Is.EqualTo(new[] { "% # Sources", "%", "% - [1] A title with 100 % and a_b" }), "LaTeX has no end of a comment, only the end of a line.");
Assert.That(comment.Split('\n'), Is.EqualTo(new[] { "% # Sources", "%", "% - [1] A title with 100 % and a_b" }), "LaTeX has no end of a comment, only the end of a line.");
}
}
@@ -177,5 +177,5 @@ public sealed class FileExportFormatTests
}
}
private static string Lines(params string[] lines) => string.Join(Environment.NewLine, lines);
private static string Lines(params string[] lines) => string.Join('\n', lines);
}