From 8c4e1847413cd621a903a03b2a529f5bef808d7c Mon Sep 17 00:00:00 2001 From: mrfry Date: Thu, 13 Apr 2023 16:32:38 +0200 Subject: [PATCH] log table col width fix --- src/utils/logger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/logger.ts b/src/utils/logger.ts index a412823..24945f8 100755 --- a/src/utils/logger.ts +++ b/src/utils/logger.ts @@ -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 += ' '