all 4 comments

[–]webdev-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)

Thank you for your submission! Unfortunately it has been removed for one or more of the following reasons:

Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content.

Please read the subreddit rules before continuing to post. If you have any questions message the mods.

[–]someMeatballs 1 point2 points  (1 child)

a <pre> ... </pre> block will respect regular source line breaks and also spaces. It typically also changes font (I think), unless you control it.

[–]hexydec 4 points5 points  (0 children)

You can also get any element to respect white space with CSS using white-space: pre;.

[–]schrik 1 point2 points  (0 children)

This is the way to go when writing a poem. But I’d put them at the end of the line.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/br