log table col width fix

This commit is contained in:
mrfry 2023-04-13 16:32:38 +02:00
parent f1a88b7ff5
commit 8c4e184741

View file

@ -392,7 +392,7 @@ function logTable(
cellVal = cell.toString()
}
if (colWidth[j]) {
if (colWidth && colWidth[j] && colWidth[j] !== -1) {
if (cellVal.length < colWidth[j]) {
while (cellVal.length < colWidth[j]) {
cellVal += ' '