From 4332d1397759cab0d284f3a1c4b084caa6813d5e Mon Sep 17 00:00:00 2001 From: John Pasula Date: Tue, 17 Aug 2010 08:36:58 -0600 Subject: [PATCH] Make CSV a bit more efficient and fix a dry-code bug with XML. Will no doubt introduce more dry-code bugs. --- core.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/core.lua b/core.lua index 4b2c751..71c4165 100644 --- a/core.lua +++ b/core.lua @@ -1940,7 +1940,7 @@ do tinsert(text_table, " ..recipe_id..") tinsert(text_table, " "..recipe.name.."") tinsert(text_table, " ..recipe.skill_level..") - tinsert(text_table, " "..is_known.."") + tinsert(text_table, " "..tostring(is_known).."") tinsert(text_table, " ") --Name elseif output == "Name" then @@ -2008,11 +2008,12 @@ do end if not output or output == "Comma" then - if is_known then - tinsert(text_table, "\",true\n") - else - tinsert(text_table, "\",false\n") - end + tinsert(text_table, "\","..tostring(is_known).."\n") + --if is_known then + -- tinsert(text_table, "\",true\n") + --else + -- tinsert(text_table, "\",false\n") + --end elseif output == "BBCode" then tinsert(text_table, "\n[/list]") elseif output == "XML" then -- 1.7.9.5