Diff

util/human/io.lua @ 13048:946442df65d3

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).
author Matthew Wild <mwild1@gmail.com>
date Fri, 07 Apr 2023 12:47:24 +0100
parent 13047:d939bf469057
child 13049:115ce3ab5b8b
line wrap: on
line diff
--- a/util/human/io.lua	Fri Apr 07 13:42:20 2023 +0200
+++ b/util/human/io.lua	Fri Apr 07 12:47:24 2023 +0100
@@ -194,7 +194,7 @@
 			table.insert(output, v);
 		end
 		return table.concat(output, separator);
-	end;
+	end, max_width;
 end
 
 return {