How do I remove this indent in my textlabel?


image

TipsTable.PlayButton.Text = "Enabled<br/>Enables/Disables auto-scrolling to new Log message"

Tried every option for multi line text, nothing removes that space. How do I get around it WITH Rich Text Enabled? Is this just a bug on the Roblox Engine I’ll have to deal with?

Hey !

This isn’t a engine bug, adding a space when you’re doing a Line Break is normal and intentional.
Unfortunatly we currently are not able to change it, so if you really want to remove it, you have to create 2 differents texts, one for the “Enabled” title and one for the Description.

You can also do something like the example bellow, to make it look less weird ^^

local Enabled = [[<font size="20" color="#55ff00">Enabled</font>]]
local Description = [[<br/>Enables/Disables auto-scrolling to new Log message]]

script.Parent.Text = Enabled.. Description

Capture

Replace <br/> with \n? But, I recommend making two text labels like @Crygen54 said.

1 Like

What is /n ?
It is not specified in the rich text markup documentation.

\n is a new line character? It works with all strings, not just rich text.

Oh, alright i didn’t know that :sweat_smile:, i just tested it but it also don’t remove the space.

This is not true. Line break character doesn’t leave a space but breaks the line into two separate lines. I had reported this issue in 2021, and it was reported by other developers as well. Printing the string length is just accurate (string patterns included). But the text on the UI is distorted.

Also, somebody exposed a workaround in the bug report above.

1 Like