Skip to content

feat(style): trim line spaces#767

Merged
caarlos0 merged 1 commit intomainfrom
align
Dec 11, 2024
Merged

feat(style): trim line spaces#767
caarlos0 merged 1 commit intomainfrom
align

Conversation

@caarlos0
Copy link
Copy Markdown
Contributor

Lipgloss applies aligning on the string as given to it, and ascii art usually contain left whitespaces to align things.

This adds an option to trim space on all lines of the input, before giving it to lipgloss, so aligning use only non-whitespace content.

CleanShot 2024-12-11 at 10 52 17@2x

fixes #575

Lipgloss applies aligning on the string as given to it, and ascii art
usually contain left whitespaces to align things.

This adds an option to trim space on all lines of the input, before
giving it to lipgloss, so aligning use only non-whitespace content.
@caarlos0 caarlos0 added enhancement New feature or request cmd/style labels Dec 11, 2024
@caarlos0 caarlos0 self-assigned this Dec 11, 2024
@caarlos0 caarlos0 merged commit 2e53efc into main Dec 11, 2024
@caarlos0 caarlos0 deleted the align branch December 11, 2024 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmd/style enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gum style --align center --width X: last line is misaligned

2 participants