From f842e05e9547399457ba5a00a5861a6cae60be8a Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 7 Apr 2023 12:47:24 +0100 Subject: util.human.io: table: Return determined width as a second result This allows callers to adjust other things based on the width of the rows (such as header lines). --- util/human/io.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/human/io.lua b/util/human/io.lua index e4bea63f..9654f461 100644 --- a/util/human/io.lua +++ b/util/human/io.lua @@ -194,7 +194,7 @@ local function new_table(col_specs, max_width) table.insert(output, v); end return table.concat(output, separator); - end; + end, max_width; end return { -- cgit v1.2.3