From bdb6a7f8604bb8e5742e68b59678dae943b1a477 Mon Sep 17 00:00:00 2001 From: Buduf Date: Thu, 30 Jun 2022 12:04:25 +0200 Subject: [PATCH] colony monitor: print table keys --- printTable.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/printTable.lua b/printTable.lua index d72d9ae..632989e 100644 --- a/printTable.lua +++ b/printTable.lua @@ -1,6 +1,7 @@ local function _printTable(table, tabs) for key, value in pairs(table) do if type(value) == "table" then + print(string.rep(" ", tabs) .. key .. ":") _printTable(value, tabs + 1) else print(string.rep(" ", tabs) .. key .. ": " .. value)