[Bug]: Density conversion not applied with ingredients containing a space in name #27
Labels
No labels
bug
discussion
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
research
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gram-lang/gram#27
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Density conversion is not applied by analysis step when the ingredient name contains a space. For exemple using @Huile{10ml} works but @Huile d'olive{10ml} doesn't and shows
⚠ 1 ingredient missing nutrition dataMinimal reproducible
.gramsnippetSteps to reproduce
gram view recipe.gramExpected behavior
Quantity of
Huile d'oliveis converted to gEnvironment
Thanks for the report ! After investigation, the issue is actually the apostrophe: "Huile d'olive" is identified internally as huile-d-olive, while your database key is huile-dolive, and the lookup didn't match the two. Fixed in PR #40: database keys, names and aliases are now compared the same way as ingredients in recipes. It'll be shipped in the next release.