table
table copied to clipboard
emoji cause table column width corruption
Emojis in cell text cause column width corruption:
stringWidth for ie. 24.2⚠️ returns 6. I am not Unicode expert, but this is most likely related to ZWJ code points and issue in string-width dependency: https://github.com/sindresorhus/string-width/issues/2. Since that issue is almost 2 years old, maybe a different module should be used or own approach implemented?
so, done?
Emojis in cell text cause column width corruption:
![]()
stringWidthfor ie.24.2⚠️returns6. I am not Unicode expert, but this is most likely related to ZWJ code points and issue instring-widthdependency: sindresorhus/string-width#2. Since that issue is almost 2 years old, maybe a different module should be used or own approach implemented?
woo ~ I have the same problem. How did you solve it ?
I just encountered this issue – ℹ️ and 🔥 are treated as different widths. I had them in different rows, same column.
This issue is dependent on https://github.com/sindresorhus/string-width/issues/2
We can switch packages if there is a better alternative.
what about power-assert-util-string-width?
The issue seems to have been fixed a while ago in https://github.com/sindresorhus/string-width/pull/39 Would it be possible to update the dependency on this lib in table?