Skip to content

fix(text): handle leading whitespace in word wrapping#129

Merged
chiefcll merged 1 commit into
solid-tv:mainfrom
pecoram:fix/wordwrap-leading-whitespace
Jul 3, 2026
Merged

fix(text): handle leading whitespace in word wrapping#129
chiefcll merged 1 commit into
solid-tv:mainfrom
pecoram:fix/wordwrap-leading-whitespace

Conversation

@pecoram

@pecoram pecoram commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Fixes leading whitespace handling in wrapLine. Splitting a line that starts with spaces produces an empty first "word" token; the wrap loop then treated the real first word as the start of the line (resetting currentLineWidth to 0) and re-applied the leading spaces as the separator after the first word instead of before it.

@chiefcll chiefcll merged commit f1d0009 into solid-tv:main Jul 3, 2026
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants