From 0b7638468c6ccf11c17ae8eac58ed8456f916d22 Mon Sep 17 00:00:00 2001 From: Tal <83217276+talwat@users.noreply.github.com> Date: Tue, 5 Aug 2025 21:49:55 +0200 Subject: [PATCH] fix: don't crash on tracklists with empty headers --- src/tracks/list.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tracks/list.rs b/src/tracks/list.rs index ed37192..d15faf8 100644 --- a/src/tracks/list.rs +++ b/src/tracks/list.rs @@ -111,7 +111,7 @@ impl List { /// Parses text into a [List]. pub fn new(name: &str, text: &str) -> Self { let lines: Vec = text - .trim() + .trim_end() .lines() .map(|x| x.trim_end().to_owned()) .collect();