aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-11-12 11:44:31 +0100
committerKim Alvefur <zash@zash.se>2021-11-12 11:44:31 +0100
commite162a73d737e60c41ba7e0e13e2ab898b58b7e0b (patch)
treeabd586480d9512bec332dc19c65dfd7352d21a15 /util
parentc9479cbb698191e25f781ed6222fea6e9056a6a1 (diff)
downloadprosody-e162a73d737e60c41ba7e0e13e2ab898b58b7e0b.tar.gz
prosody-e162a73d737e60c41ba7e0e13e2ab898b58b7e0b.zip
util.human.io: Support specifying column defaults in tables
Diffstat (limited to 'util')
-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 a175f5af..f8868cc6 100644
--- a/util/human/io.lua
+++ b/util/human/io.lua
@@ -136,7 +136,7 @@ local function new_table(col_specs, max_width)
v = column.mapper(v, row);
end
if v == nil then
- v = "";
+ v = column.default or "";
else
v = tostring(v);
end