Skip to content

Commit ba63f60

Browse files
committed
Fixed empty lines being added to the end of output mgcb.
1 parent bde59ac commit ba63f60

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

NoPipeline/NoPipeline/Content.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public string Build()
5858
builder.Append(item.ToString());
5959
}
6060

61-
builder.AppendLine();
61+
RemoveTrailingBlankLines(builder);
6262

6363
return builder.ToString();
6464
}
@@ -188,5 +188,12 @@ public void CheckIntegrity(string rootPath)
188188
}
189189

190190

191+
private void RemoveTrailingBlankLines(StringBuilder builder)
192+
{
193+
while(builder.ToString().EndsWith(Environment.NewLine))
194+
{
195+
builder.Remove(builder.Length - Environment.NewLine.Length, Environment.NewLine.Length);
196+
}
197+
}
191198
}
192199
}

0 commit comments

Comments
 (0)