Changeset

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
parents 13047:d939bf469057
children 13049:115ce3ab5b8b
files util/human/io.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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 {