gajus / table

Formats data into a string table.
Other
893 stars 77 forks source link

Custom space character #183

Closed niveKKumar closed 2 years ago

niveKKumar commented 2 years ago

I use the table inside discord,only problem is that whitespace is trimmed so the output looks awful image

Using it inside a codeblock (Which essentially doesnt trim whitspace) formats emojis wrong (which was also mentioned here in one of the issues) image The console log is flawless tho.

Maybe a custom "space" character could solve the problem ?

gajus commented 2 years ago

There is nothing we can do about Discord formatting. (There is no way to force monospace font.)

For code-block, this also seems Discord specific.

Not much we can do on our side, but if you come up with a solution, we can add it as a helper.