Comparison

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
comparison
equal deleted inserted replaced
13047:d939bf469057 13048:946442df65d3
192 v = (column.ellipsis or ellipsis)(v, width); 192 v = (column.ellipsis or ellipsis)(v, width);
193 end 193 end
194 table.insert(output, v); 194 table.insert(output, v);
195 end 195 end
196 return table.concat(output, separator); 196 return table.concat(output, separator);
197 end; 197 end, max_width;
198 end 198 end
199 199
200 return { 200 return {
201 getchar = getchar; 201 getchar = getchar;
202 getline = getline; 202 getline = getline;