From e162a73d737e60c41ba7e0e13e2ab898b58b7e0b Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 12 Nov 2021 11:44:31 +0100 Subject: util.human.io: Support specifying column defaults in tables --- util/human/io.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/human/io.lua') 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 -- cgit v1.2.3