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

RichTextLabel coloring issue with underlining or striking BBCode tag if color tag is also used at the beginning of a line #84231

Closed
TheRealSlander opened this issue Oct 31, 2023 · 0 comments · Fixed by #84233
Assignees
Milestone

Comments

@TheRealSlander
Copy link

Godot version

4.2.beta3 (and all the other 4.2.x flavors)

System information

Manjaro Linux (DE: Cinnamon v5.8.4) 64 bits

Issue description

When using a color tag (BBCode) at the beginning of a RichTextLabel text, when striking/underlining is also used on this colored text later, the lines created by the striking/underlining are colored until the end of the line.

If text is on multiple lines, only the lines beginning with a color tag are impacted until the end of this particular line (by the end I mean when the control's end is reached, generating a new line by wordwrap, not when a new line is manually introduced).

image

Expected result should be a matching of the underlining/striking color with the related text above/under.

Steps to reproduce

I provide a MRP below, but simply adding color tag at the beginning of a RTL text for only a few words and also adding [s]..[/s] around the whole text would trigger the issue.

Text should be partially colored only and the striking/underlining should be applied to the whole text to see the actual issue.

Minimal reproduction project

The small application seen in the screenshot above:
Rich Text Label Issue.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants