From b8cc999ffd1efecd58cd4568e948296a9e9104eb Mon Sep 17 00:00:00 2001 From: gamerdonkey Date: Thu, 11 Sep 2025 22:48:10 +0000 Subject: [PATCH] Improve output HTML tags for styling. --- recipe_json_to_html.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/recipe_json_to_html.py b/recipe_json_to_html.py index e01e993..c218bb9 100644 --- a/recipe_json_to_html.py +++ b/recipe_json_to_html.py @@ -59,9 +59,11 @@ print("") print("") print(f"{recipe_name}") print("") +print("") print("") print("") +print("
") print("
") print(f"

{recipe_name}

") print("
") @@ -69,14 +71,19 @@ print("") print("
") print(f"

{recipe_desc}

") print("
") +print("
") +print("
") print("
") print("

Needs

") print("
    ") for sub_recipe in sub_recipes: for ingredient in sub_recipe.leaves: - print(f"
  • {ingredient.name}
  • ") + if ingredient.description: + print(f"
  • {ingredient.name} -- {ingredient.description}
  • ") + else: + print(f"
  • {ingredient.name}
  • ") print("
") print("
") @@ -92,8 +99,9 @@ for sub_recipe in sub_recipes: print("") print("") +print("
") -print("
") +print("") print("

Tabular Layout

") for sub_recipe in sub_recipes: @@ -116,7 +124,7 @@ for sub_recipe in sub_recipes: print("") print("

") -print("
") +print("") print("") print("")