From 56b8e2bef6bb141decaa95675cd6688ba19c9998 Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Sat, 19 Aug 2023 15:26:07 +0200 Subject: [PATCH] Fix image format bug --- doc/plans.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/plans.lua b/doc/plans.lua index 625a2ee..82078cb 100644 --- a/doc/plans.lua +++ b/doc/plans.lua @@ -574,11 +574,11 @@ local function reformat(plan) elseif var1 == "sectional_view" then plan[y][x] = {"text", var1} elseif var1 == "" then - plan[y][x] = {"image", var2, "2.2,2.2"} + plan[y][x] = {"img", var2, "2.2,2.2"} elseif var1 == "10x10" then - plan[y][x] = {"image", var2, "10,10"} + plan[y][x] = {"img", var2, "10,10"} elseif var1 == "5x4" then - plan[y][x] = {"image", var2, "5,4"} + plan[y][x] = {"img", var2, "5,4"} else plan[y][x] = {"item", var1, var2} end @@ -588,7 +588,8 @@ local function reformat(plan) return plan end - for name, plan in pairs(plans) do - doclib.add_manual_plan("techage", "DE", name, reformat(plan)) + local plan2 = reformat(plan) + doclib.add_manual_plan("techage", "EN", name, plan2) + doclib.add_manual_plan("techage", "DE", name, plan2) end