mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
log table col width fix
This commit is contained in:
parent
f1a88b7ff5
commit
8c4e184741
1 changed files with 1 additions and 1 deletions
|
@ -392,7 +392,7 @@ function logTable(
|
||||||
cellVal = cell.toString()
|
cellVal = cell.toString()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (colWidth[j]) {
|
if (colWidth && colWidth[j] && colWidth[j] !== -1) {
|
||||||
if (cellVal.length < colWidth[j]) {
|
if (cellVal.length < colWidth[j]) {
|
||||||
while (cellVal.length < colWidth[j]) {
|
while (cellVal.length < colWidth[j]) {
|
||||||
cellVal += ' '
|
cellVal += ' '
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue