mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 05:37:39 +03:00
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).
This commit is contained in:
parent
9760019a25
commit
f842e05e95
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ local function new_table(col_specs, max_width)
|
|||
table.insert(output, v);
|
||||
end
|
||||
return table.concat(output, separator);
|
||||
end;
|
||||
end, max_width;
|
||||
end
|
||||
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue