We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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,
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug
When using
![Screenshot 2023-05-11 at 8 42 18 pm](https://private-user-images.githubusercontent.com/26566353/237659760-6848a419-a4e6-492a-bd3a-25acae7b88ae.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MjY2ODMsIm5iZiI6MTczOTYyNjM4MywicGF0aCI6Ii8yNjU2NjM1My8yMzc2NTk3NjAtNjg0OGE0MTktYTRlNi00OTJhLWJkM2EtMjVhY2FlN2I4OGFlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDEzMzMwM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUxYzI1ZDhlN2FhMmU0OWMwNDk0MTU3ODk1ZmIxNTkwMTM2OTc3ZWI1NTA0NjA4YTRlY2UyYWFlMDJiODljOTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.1OMhTxSvu-7EmNO1p_BScobJMeY_bFRma3-sCbi7ctU)
truncate
, table borders are getting coloured the same as the cell content.How to replicate
Removing
![Screenshot 2023-05-11 at 8 42 34 pm](https://private-user-images.githubusercontent.com/26566353/237659780-1a648267-2e3c-4526-9433-4b50bb39efbf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MjY2ODMsIm5iZiI6MTczOTYyNjM4MywicGF0aCI6Ii8yNjU2NjM1My8yMzc2NTk3ODAtMWE2NDgyNjctMmUzYy00NTI2LTk0MzMtNGI1MGJiMzllZmJmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDEzMzMwM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIwZGMyMDIyMWJiZjk3Yjc4NzRiMTBiYTU5YmU1MDZjOTc3MWJjMDcwMTVlNTNkYTgyMDg2ZTM3MTMyYjFiYWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.vXT2LXMm8_OTB0UPPQAXMg7lMR6LPG-xIKIznLV6wEE)
truncate: 150,
prints the table without the border changing color.The text was updated successfully, but these errors were encountered: