You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unicode can mess up alignment even with wcwidth and WIDE_CHARS_MODE on #108
I've found an issue with representing certain Unicode symbols in tabulate and I'm not sure if this is already known given the other two issues seemingly pointing out a similar issue, but not using emoji's in their claims: #52 #28
I'm pretty new to using GitHub so please excuse the use of pictures instead of the raw data.
I couldn't figure out how to format it so that it wouldn't remove the white space which is the primary point of concern.
Editor Sublime Text3:
Image shows logged table in text file
Discord:
Image shows code blocked table
PowerShell:
Image shows logged table in PowerShell (just as reference since my terminal is not Unicode aware, but then things line up)
This is the raw data:
usersid | name | active
-----------+---------------+----------
26 | ❆ 𝕀𝕧𝕒 🎀 ℕ𝕒 ❆ | True
34 | 𝓢𝓮𝓽𝓱🌹 | True
32 | 𝓓𝓪𝓻𝓴 𝓔𝓯𝓯𝓮𝓬𝓽𝔃 | True
1 | Dragon | True
I'm not convinced this was fixed. I just pulled 0.8.9 and tried it and my results were still like my original post. I'm not sure if this is a terminal/editor issue or not, but ultimately Discord still doesn't render it properly, but PowerShell does.
Activity
cmccandless commentedon Feb 6, 2021
Bump. Can confirm this issue in 0.8.7
astanin commentedon Feb 17, 2021
This issue has been fixed in the current master branch.
See also: pull request #58.
DragonRulerX commentedon Mar 13, 2021
I'm not convinced this was fixed. I just pulled 0.8.9 and tried it and my results were still like my original post. I'm not sure if this is a terminal/editor issue or not, but ultimately Discord still doesn't render it properly, but PowerShell does.
joscha commentedon Jun 7, 2021
I am hitting this issue with the latest version with emojis, specifically 🪦, 👑 and ✅ .
Jeiwan commentedon Nov 29, 2021
To have this fixed you need to install
widechars:https://github.com/astanin/python-tabulate#wide-fullwidth-cjk-symbols
azumukupoe commentedon Jul 10, 2024
Emoji modifiers still cause misalignment
hoishing commentedon Sep 4, 2024
I got the same emoji problem, maybe its related to the terminal font also, I use
Sarasa Mono TCfont as a work around