fix: allow for empty headers

This commit is contained in:
talwat 2025-03-02 16:18:35 +01:00
parent 84f386e0eb
commit 768f976e89

View File

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