revert d1bb29c950
All checks were successful
CI/CD Pipeline / test (push) Successful in 1m51s
All checks were successful
CI/CD Pipeline / test (push) Successful in 1m51s
revert try
This commit is contained in:
parent
d1bb29c950
commit
cfe51b6de5
@ -227,18 +227,11 @@ impl Ziffernliste {
|
|||||||
elems.push(sublist.get_content());
|
elems.push(sublist.get_content());
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut schlussteile = Vec::new();
|
|
||||||
for schlussteil in &self.schlussteile {
|
for schlussteil in &self.schlussteile {
|
||||||
schlussteile.push(Content::Text(schlussteil.content.clone()));
|
elems.push(Content::Text(schlussteil.content.clone()));
|
||||||
}
|
|
||||||
// elems.push(Content::Multi(schlussteile));
|
|
||||||
//
|
|
||||||
//
|
|
||||||
match self.schlussteile.len() {
|
|
||||||
0 => Content::List(elems),
|
|
||||||
1 => Content::Multi(vec![Content::List(elems), schlussteile[0].clone()]),
|
|
||||||
_ => Content::Multi(vec![Content::List(elems), Content::Multi(schlussteile)]),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Content::List(elems)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user