aboutsummaryrefslogtreecommitdiffstats
path: root/util/human
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2023-04-07 12:47:24 +0100
committerMatthew Wild <mwild1@gmail.com>2023-04-07 12:47:24 +0100
commitf842e05e9547399457ba5a00a5861a6cae60be8a (patch)
treeda191ae78d0f7e0fb9b75422e76f670b82d386a8 /util/human
parent9760019a25dbbb6e04d4ee1ee1366ea14fc0472e (diff)
downloadprosody-f842e05e9547399457ba5a00a5861a6cae60be8a.tar.gz
prosody-f842e05e9547399457ba5a00a5861a6cae60be8a.zip
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).
Diffstat (limited to 'util/human')
-rw-r--r--util/human/io.lua2
1 files changed, 1 insertions, 1 deletions
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 {