gourmet
gourmet copied to clipboard
Ingredient amounts on Card Display show fractions incorrectly
User Story
It is very important for many of my recipes to display fractions accurately as I often have to multiply the recipe servings and rounded numbers can have drastic effects on end amounts.
Steps to Reproduce
- On Index View, click New in upper left corner to open the new recipe entry form.
- Enter the name of the Title, for example "Test Recipe", then switch to Ingredients tab.
- On the Ingredients tab, enter "1-3/4 g Test Ingredient" into the Add ingredients input box and hit Enter.
- Click Save in the upper left corner to save the recipe.
- Click View Recipe Card to view the saved recipe.
Expected Behavior
Card Display of the recipe should display the ingredient amount as entered.
Current Behavior
Card Display of the recipe displays the entered "1-3/4" value as "2". Moreover, changing the amount from "1-3/4" to "2" is displayed as "2-0". The only way to correct the error is to delete the ingredient and to recreate it with the corrected value. Note that the error is reflected on the recipe printout too, but the Recipe Editor retains the original entry correctly.
Possible Solution
-none-
Environment
Operating System: MS Windows 11 Pro Version or commit id: Gourmet Recipe Manager 0.17.4 Installed as Flatpak or Python package?: Gourmet.Recipe.Manager-0.17.4-win32.msi