There are no tags on the text, it is simply raw text.
I rely on RichText to adapt to the DevForum’s markdown (as I am porting text directly from it). Beyond the first header, it creates a weird effect where each line afterwards is followed by a space or some form of whitespace, which is not the behavior I expect. The text itself does not include any spaces.
It only applies to TextXAlignment Centered and Left
TextYAlignment does not affect it
TextScaled is false
TextWrapped is true
A UIPadding element exists, but doesn’t seem to be the problem
It affects ScreenGuis as well
It probably affects BillboardGuis
Manually line breaking is essentially the same thing as inserting an \n or <br/> character. If I use string.gsub to replace every \n with another character, it proves just that.
It happens with all fonts. Simply changing the font wouldn’t be a conventional approach either
Still an issue. Would appreciate for someone to look into this
Thank you for letting me know!
I wonder how I haven’t thought of that one… So I guess the \n creates an invisible character then, that’s weird.
Either way, I tested it and it works fine with your workaround!
I just found out that the work-around has an undesirable effect: if you have multiple newlines in a row, they’ll end up with a line height of 0, effectively disappearing.
I figured that out, although found a way to fix it, basically doing text:gsub( '\n', ' <font size="0">\n</font>' ) appears to allow multiple newlines due to the space before them