Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add paragraph word wrap support - #219

Merged
dantleech merged 2 commits into
php-tui:mainfrom
KennedyTedesco:word-wrapper
Dec 27, 2023
Merged

Add paragraph word wrap support#219
dantleech merged 2 commits into
php-tui:mainfrom
KennedyTedesco:word-wrapper

Conversation

@KennedyTedesco

@KennedyTedesco KennedyTedesco commented Dec 26, 2023

Copy link
Copy Markdown
Contributor

Closes #202 and #203

This implementation is heavily based on Ratatui's. You can review tests (the last two ones are the best ones) to understand the differences between breaking by Word vs WordTrimmed (there is a significant difference).

The None variant is simply an alias for Character. Notice that None is the default wrapping logic used if none is specified.

@dantleech
dantleech merged commit bfecc51 into php-tui:main Dec 27, 2023
@dantleech

Copy link
Copy Markdown
Collaborator

Nice work!

@KennedyTedesco
KennedyTedesco deleted the word-wrapper branch December 27, 2023 11:36
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.

Paragraph: wrap is not used

2 participants