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

[3.x] Fix RichTextLabel bbcode wrapping #64540

Open
wants to merge 3 commits into
base: 3.x
Choose a base branch
from

Conversation

Latentsage
Copy link

Fixes #31089

BBCode tags are added as separate Items in the Item tree. Each item is treated independently when considering wrapping, even if there are no breakable characters (whitespace, separatable kana) between them.

This change fixes that by calculating the width of the following items up to their first breakable point and adding that to the width for the purpose of wrapping the line.

@Latentsage Latentsage requested a review from a team as a code owner August 17, 2022 16:44
@YeldhamDev YeldhamDev modified the milestones: 4.0, 3.x Aug 17, 2022
@akien-mga akien-mga requested a review from bruvzg August 28, 2022 21:29
@akien-mga akien-mga changed the title Fix rich text label bbcode wrapping [3.x] Fix RichTextLabel bbcode wrapping Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RichTextLabel - BBcode separates words for purpose of text-wrapping
2 participants