How to have spaces in the beginning of the line?

I'm not sure if this is the right place to ask, but here goes.
If I add spaces to the beginning of a line,

the text is rendered like this.

Is there a way to have actual spaces in the beginning of a line?

10 points · 4 comments · view on lemmy.world

4 Comments

owenfromcanada@lemmy.world · 4 pts · 2y (3 replies)

If you type the sequence   it will be converted to a space and I don't think it'll trigger the code thing.

    This line starts with four of them.

It's not pretty, but it works?

Kolanaki@yiffit.net · 4 pts · 2y (2 replies)

If that one works then would the actual one for a tab work?

Testing one two.

It does! \o/

You don't need 4 things if you just do &TAB; which is how you do indents in a word document in the first place.

Edit: I guess it depends on what you use to view the site. :(

lady_scarecrow@lemmy.blahaj.zone · 3 pts · 2y (1 reply)

I don't see anything indented on yours though? I do on the one you replied to.

Kolanaki@yiffit.net · 2 pts · 2y

Oof. It works in my app (Jerboa) but I just opened the webpage and it doesn't have the indent. :/

Odd... It's literally HTML code. You'd think it'd work on a webpage. 🤷🏻‍♂️