You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Unlike BBCode in HTML, leading/trailing whitespace is not removed by a RichTextLabel upon display. Duplicate spaces are also displayed as-is in the final output."
However, i've run into a bug where RichTextLabels will automatically strip trailing whitespace on right-aligned lines if they end in newline.
Steps to reproduce
Create a RichTextLabel
Set the layout transform size to 256x256
Enable BBCode
Set the text to [right]TEST [/right]. This will not strip the whitespace, and will display correctly
Add a newline. This will cause the previous line to no loner end in whitespace. If you add another [right]TEST [/right] line, it will display correctly as long as it is the last line in the textbox.
Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered:
Tested versions
System information
Godot v4.3.stable - macOS 14.2.1 - Vulkan (Forward+) - integrated Apple M2 Pro - Apple M2 Pro (12 Threads)
Issue description
According to the docs:
"Unlike BBCode in HTML, leading/trailing whitespace is not removed by a RichTextLabel upon display. Duplicate spaces are also displayed as-is in the final output."
However, i've run into a bug where RichTextLabels will automatically strip trailing whitespace on right-aligned lines if they end in newline.
Steps to reproduce
[right]TEST [/right]
. This will not strip the whitespace, and will display correctly[right]TEST [/right]
line, it will display correctly as long as it is the last line in the textbox.Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered: