From d8b36e5d0809e53dcd7fbbf4685f36db71787553 Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Sat, 21 Mar 2015 20:55:38 +1100 Subject: [PATCH] Add a newline between objective sections This is set up that there will be no newlines at the end of any section, unless you have only a summary key, which no one would do. However, there will be a newline at the top of the dialog if you don't have a win objective, but no one would do that either. Note that because of newlines not showing up properly on Windows, this won't be viable on that platform. --- data/lua/wml/objectives.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data/lua/wml/objectives.lua b/data/lua/wml/objectives.lua index 2e84fb22f70a..5944a0818129 100644 --- a/data/lua/wml/objectives.lua +++ b/data/lua/wml/objectives.lua @@ -152,17 +152,17 @@ local function generate_objectives(cfg) objectives = objectives .. "" .. win_string .. "\n" .. win_objectives end if lose_objectives ~= "" then - objectives = objectives .. "" .. lose_string .. "\n" .. lose_objectives + objectives = objectives .. "\n" .. "" .. lose_string .. "\n" .. lose_objectives end if gold_carryover ~= "" then - objectives = objectives .. gold_carryover_string .. "\n" .. gold_carryover + objectives = objectives .. "\n" .. gold_carryover_string .. "\n" .. gold_carryover end if notes ~= "" then - objectives = objectives .. notes_string .. "\n" .. notes + objectives = objectives .. "\n" .. notes_string .. "\n" .. notes end local note = cfg.note if note then - objectives = objectives .. note .. "\n" + objectives = objectives .. "\n" .. note end return string.sub(tostring(objectives), 1, -2)