That post was actually made a little after 9:00 a.m. my time. It was the one around 3:30 a.m. that was more problematic.
All I did to improve the format of your "code" section was hit the Edit Button (I can edit anyone's posts, but you can edit your own). It showed the "code" section as a set of text characters with the word "code" (with [ ] around the word) at the start and the word "/code" (again with [ ] around the word) at the end. I then observed where the text should break, put the cursor there and hit the "Enter" key. Sometimes it took two hits of the "Enter" key to make the text move to the next line.
Check it out. Go to your Post with the "Code" and hit the Edit Button and look at what it shows you.

You will then see what I saw after the changes.
Regards,