diff --git a/src/paragraph/parser/abschnitt.rs b/src/paragraph/parser/abschnitt.rs index 2a63cd5..97e09e3 100644 --- a/src/paragraph/parser/abschnitt.rs +++ b/src/paragraph/parser/abschnitt.rs @@ -102,7 +102,7 @@ impl Abschnitt { } } value = value.trim().into(); - if value == "" { + if value.is_empty() { panic!("Expected at least on erltext-absatz after title meta-data"); } @@ -190,14 +190,12 @@ impl Abschnitt { // If there's a "table" after an "absatz", the "table" should be part of the "absatz" let table = Table::parse_full(c); content.extend(table.iter().cloned()); - } else if Absatz::test_with_typ(child, "satz") { - // After a 'absatz' there can be a '