Open jasperdunn opened 1 year ago
When using truncate, table borders are getting coloured the same as the cell content.
truncate
let andTruncating = '' for (let i = 0; i < 20; i++) { andTruncating += 'and truncating ' } console.log( table( [ ['test', 'using chalk to color cell data'], ['condition', chalk.red(andTruncating)], ], { columns: [ {}, { width: 50, truncate: 150, }, ], columnDefault: { wrapWord: true, }, } ) )
Removing truncate: 150, prints the table without the border changing color.
truncate: 150,
Bug
When using
truncate
, table borders are getting coloured the same as the cell content.How to replicate
Removing
truncate: 150,
prints the table without the border changing color.