Skip to content

gum format adds many spaces to end of string #891

@octoshrimpy

Description

@octoshrimpy

Describe the bug
gum format -t emoji pads with many spaces

To Reproduce
Steps to reproduce the behavior:

echo 'I :heart: Bubble Gum :candy:' | gum format -t emoji

I ❤️ Bubble Gum 🍬

echo 'I :heart: Bubble Gum :candy:' | gum format -t emoji | sed 's/ /-/g' 

I-❤️-Bubble-Gum-🍬--------------------------------------------------------------

echo 'hi' | gum format -t emoji

hi

echo 'hi' | gum format -t emoji | sed 's/ /-/g'

hi------------------------------------------------------------------------------

Expected behavior
no extra spaces added

Screenshots

Image

gum --version
gum version 0.16.0 (0d116b8)


sidenote: looks like emoji aren't getting extra padding, as seen on screenie by the ❤ being so close to the B

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions