gajus/table

emoji cause table column width corruption

Open

#67 ouverte le 9 mai 2018

Voir sur GitHub
 (7 commentaires) (4 réactions) (0 assignés)TypeScript (81 forks)github user discovery
bughelp wanted

Métriques du dépôt

Stars
 (977 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

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?

Guide contributeur