diff options
author | Kim Alvefur <zash@zash.se> | 2021-11-12 11:44:31 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-11-12 11:44:31 +0100 |
commit | e162a73d737e60c41ba7e0e13e2ab898b58b7e0b (patch) | |
tree | abd586480d9512bec332dc19c65dfd7352d21a15 | |
parent | c9479cbb698191e25f781ed6222fea6e9056a6a1 (diff) | |
download | prosody-e162a73d737e60c41ba7e0e13e2ab898b58b7e0b.tar.gz prosody-e162a73d737e60c41ba7e0e13e2ab898b58b7e0b.zip |
util.human.io: Support specifying column defaults in tables
-rw-r--r-- | util/human/io.lua | 2 |
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 |