It looks like it is the code setting. When nothing is selected it posts fine although it should not wrap. When I select Visual Basic for Applications then it gets mangled:
HOWEVER...
Now I'm going back to reproduce and every time I paste code into a new code block it assumes it's VBA and it not getting mangled.
I don't know what is going on.