stellar / stellar-cli

CLI for Soroban contracts.
65 stars 55 forks source link

Printing inconsistent width characters and spacing #1568

Closed leighmcculloch closed 1 week ago

leighmcculloch commented 2 weeks ago

What version are you using?

21.4.1

What did you do?

Screenshot 2024-08-28 at 3 38 32 PM

What did you expect to see?

Consistent spacing around emojis.

What did you see instead?

Inconsistent spacing around emojis.

cc @fnando @elizabethengelman

leighmcculloch commented 2 weeks ago

I remember this when I added emojis to the snapshot create command, there were some emojis that were two code points wide and the terminals I tested in that affected the spacing against following characters. In that command I compensated by adding in an additional space after some emojis to have them align.

We need to check how this renders in a variety of terminals.

We may wish to limit our emojis to single codepoint emojis if we can't find common consistency.

janewang commented 1 week ago

Look for different icons

fnando commented 1 week ago

This is an issue that affects both the vscode terminal and the default macOS terminal (iterm works fine).