Fix ingredient parsing to be less obnoxious
This commit is contained in:
parent
7025ee9e3a
commit
63860cd05a
2 changed files with 28 additions and 18 deletions
|
@ -131,10 +131,7 @@ fn prepare_grocery_list(ingredients: &Vec<(Ingredient, Vec<String>)>) -> Result<
|
|||
)?;
|
||||
writeln!(out)?; // leave an empty line
|
||||
for (ingredient, recipes) in ingredients {
|
||||
writeln!(out, "- [ ] {}", ingredient)?;
|
||||
for recipe in recipes {
|
||||
writeln!(out, " * {}", recipe)?;
|
||||
}
|
||||
writeln!(out, "- [ ] {} ({})", ingredient, recipes.join(", "))?;
|
||||
}
|
||||
|
||||
Ok(out)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue