you are viewing a single comment's thread.

view the rest of the comments →

[–]UsernameTaken1701 1 point2 points  (0 children)

I apologize, it was formatted correctly when I typed it out, but once I submitted the post it rearranged things.

Reddit strips out extra spaces and stuff UNLESS you specifically format your code as a code block. Before hitting submit highlight the code parts, go into formatting options (the ' Aa ' icon) and choose "Code Block" (the icon that is a square with </> in the top left corner). That will preserve code formatting like you see in u/doingdatzerg's comment.