From 85e8d708b4ac7f452aecea06efcd3d765a52213f Mon Sep 17 00:00:00 2001 From: Nice3point Date: Wed, 1 May 2024 01:44:35 +0300 Subject: [PATCH] Fix changelog builder --- build/Build.CI.GitHub.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/Build.CI.GitHub.cs b/build/Build.CI.GitHub.cs index ed6e1ef2..d18a010d 100644 --- a/build/Build.CI.GitHub.cs +++ b/build/Build.CI.GitHub.cs @@ -122,6 +122,8 @@ StringBuilder BuildChangelog(string version) static void TrimEmptyLines(StringBuilder builder) { + if (builder.Length == 0) return; + while (builder[^1] == '\r' || builder[^1] == '\n') { builder.Remove(builder.Length - 1, 1);