util.human.io: table: Return determined width as a second result
authorMatthew Wild <mwild1@gmail.com>
Fri, 07 Apr 2023 12:47:24 +0100
changeset 13052 946442df65d3
parent 13051 d939bf469057
child 13053 115ce3ab5b8b
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).
util/human/io.lua
--- 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 {