From 822bf6fbca5f7d01d08a2fc4ea58ed5edc59d0a4 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sat, 4 Apr 2026 11:29:47 -0400 Subject: [PATCH] Don't remove whitespace from cuesheets --- CHANGELIST.md | 4 ++++ MPF.Processors/Redumper.cs | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELIST.md b/CHANGELIST.md index d1f3bc9a..5d11f4c3 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -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 diff --git a/MPF.Processors/Redumper.cs b/MPF.Processors/Redumper.cs index 035cc08f..d2d148f3 100644 --- a/MPF.Processors/Redumper.cs +++ b/MPF.Processors/Redumper.cs @@ -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');