fix: don't crash on tracklists with empty headers

This commit is contained in:
Tal 2025-08-05 21:49:55 +02:00
parent 2c9a8229da
commit 0b7638468c

View File

@ -111,7 +111,7 @@ impl List {
/// Parses text into a [List].
pub fn new(name: &str, text: &str) -> Self {
let lines: Vec<String> = text
.trim()
.trim_end()
.lines()
.map(|x| x.trim_end().to_owned())
.collect();