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

feat(style): trim line spaces #767

Merged
merged 1 commit into from
Dec 11, 2024
Merged

feat(style): trim line spaces #767

merged 1 commit into from
Dec 11, 2024

Conversation

caarlos0
Copy link
Member

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
14 checks passed
@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