Closed hugovk closed 4 years ago
@hugovk Thank you for your report.
I'm not sure how to solve the issue right now.
Unicode 9 or newer version (which improve Unicode emoji width precision) may work around the issue.
However, Unicode 9 supported since Python 3.6.1
or later.
Furthermore, you would get unstable width by environments, even if you use Unicode 9.
I'm not sure how to get stable Unicode emojis width that independent to environments.
At least Python 3.4 is quite old, and will reach end-of-life in six months, so I wouldn't worry about that one and good to hear Unicode 9 may improve things.
In our particular use case the table is quite wide and long and the emoji is in a column near the right edge, so the table is not as untidy as the example above, and it's not a big issue.
Feel free to close this if there's no clear fix, and thank you for taking the time to investigate.
Our CI now has Python 3.6.9 and this is much less of a problem, so I'm happy to close this now:
pytablewriter 0.36.0
Here's a table using emoji:
It renders fine on macOS High Sierra / Python 3.7.0 / iTerm:
But on our CI (Linux / Python 3.4.3) the emoji are causing some misalignment:
https://travis-ci.org/hugovk/test/jobs/442039626#L363