mirror of
https://github.com/talwat/lowfi
synced 2025-08-14 13:32:37 +00:00
fix: don't crash on tracklists with empty headers
This commit is contained in:
parent
2c9a8229da
commit
0b7638468c
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user