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
I ran into the same issue. It's hacky, but I found that appending a zero-width joiner to the end of a problematic character seems to fix the formatting issue, i.e., ✅\u200D.
I also found that some terminals render these tables correctly. Either way, this hack seems to work on all the terminals I tried.
Activity
eseidel commentedon Nov 22, 2023
I see, the code currently attempts to do this:
https://github.com/mvitlov/cli_table/blob/main/lib/src/utils.dart#L16
with:
https://pub.dev/packages/string_width
defano commentedon Apr 17, 2025
I ran into the same issue. It's hacky, but I found that appending a zero-width joiner to the end of a problematic character seems to fix the formatting issue, i.e.,
✅\u200D.I also found that some terminals render these tables correctly. Either way, this hack seems to work on all the terminals I tried.