changeset 13936:4f1b6f6e68c0

util.human.io: Allow specifying a different column separator
author Kim Alvefur <zash@zash.se>
date Sat, 30 Aug 2025 21:54:07 +0200
parents 6a493e41c2cc
children cfe3e85e715f
files util/human/io.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/util/human/io.lua	Sat Aug 30 21:52:00 2025 +0200
+++ b/util/human/io.lua	Sat Aug 30 21:54:07 2025 +0200
@@ -166,9 +166,9 @@
 	return widths;
 end
 
-local function new_table(col_specs, max_width)
+local function new_table(col_specs, max_width, separator)
 	max_width = max_width or term_width(80);
-	local separator = " | ";
+	separator = separator or " | ";
 
 	local widths = calculate_column_widths(col_specs, separator, max_width);