remove list of list etc
All checks were successful
CI/CD Pipeline / test (push) Successful in 2m5s

This commit is contained in:
2024-02-17 16:43:04 +01:00
parent 1732f40534
commit 4317f79d0c
13 changed files with 239 additions and 225 deletions

View File

@ -63,6 +63,10 @@ impl Liste {
}
pub(crate) fn get_content(&self) -> Content {
Content::List(self.content.clone())
if self.content.len() == 1 {
self.content[0].clone()
} else {
Content::List(self.content.clone())
}
}
}