Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New lines with gum log and gum format with emoji when character count is greater than 14 #858

Open
onedr0p opened this issue Feb 14, 2025 · 0 comments

Comments

@onedr0p
Copy link

onedr0p commented Feb 14, 2025

Issue

There seems to be a problem with character count when using gum log and gum format, see below for reproducing the problem.

14 characters with emoji only produces one newline

❯ gum log --time=rfc3339 --formatter=text --structured --level debug "fdsafdsafdsafd $(gum format -- ":rocket:" | gum format --
type emoji)"
2025-02-14T09:02:12-05:00 DEBUG fdsafdsafdsafd 🚀
# newline

15 characters with emoji produces two newlines

This should produce one newline like it does with 14 characters

❯ gum log --time=rfc3339 --formatter=text --structured --level debug "fdsafdsafdsafds $(gum format -- ":rocket:" | gum format -
-type emoji)"
2025-02-14T09:02:08-05:00 DEBUG fdsafdsafdsafds 🚀
# newline
# newline

Screenshot

Image

Gum Version

v0.15.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant