Skip to content

Text rework#11

Merged
Martan03 merged 18 commits into
masterfrom
text-rework
Apr 19, 2026
Merged

Text rework#11
Martan03 merged 18 commits into
masterfrom
text-rework

Conversation

@Martan03
Copy link
Copy Markdown
Owner

Features

  • Add Line and StyledStr for better text parsing
  • Add Text::append_lines to the Text trait
  • Add text alignment and ellipsis into Paragraph
  • Add Text trait implementation for Paragraph

Changes:

  • Remove Text::render_offset (Text::append_lines should be used instead)
  • Remove Text::get and Text::get_text
    • Text::get is replaced by std::fmt::Display implementation

Fixes

  • Fix text parser ignoring whitespaces when Wrap::Word
  • Fix text parser incorrectly measuring width

@Martan03 Martan03 self-assigned this Apr 19, 2026
@Martan03 Martan03 added bug Something isn't working enhancement New feature or request labels Apr 19, 2026
@Martan03 Martan03 merged commit 6040992 into master Apr 19, 2026
3 checks passed
@Martan03 Martan03 deleted the text-rework branch April 19, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant