Don't remove whitespace from cuesheets

This commit is contained in:
Matt Nadareski
2026-04-04 11:29:47 -04:00
parent e0ddee93ef
commit 822bf6fbca
2 changed files with 7 additions and 3 deletions

View File

@@ -1,3 +1,7 @@
### WIP (xxxx-xx-xx)
- Don't remove whitespace from cuesheets
### 3.7.1 (2026-03-30)
- Display the path being processed in Check since multiple are allowed

View File

@@ -1042,12 +1042,12 @@ namespace MPF.Processors
// Now that we're at the relevant entries, read each line in and concatenate
var sb = new StringBuilder();
string? line = sr.ReadLine()?.Trim();
while (!string.IsNullOrEmpty(line))
string? line = sr.ReadLine();
while (!string.IsNullOrEmpty(line?.Trim()))
{
// TODO: Figure out how to use NormalizeShiftJIS here
sb.AppendLine(line);
line = sr.ReadLine()?.Trim();
line = sr.ReadLine();
}
return sb.ToString().TrimEnd('\n');