When discussing unformatted code on meta, I noticed that there is a bug in the warning that says that code isn't formatted. For example, if I enter this, the warning works fine:
However, the following didn't generate any warning, and as you can see in the preview, the code is still badly formatted:
This issue caused an answer to be badly formatted. You can read about that here.
I think that this should get fixed so that the warning appears every time the code would be badly formatted. Otherwise new users have no way of knowing that their code will be badly formatted when they don't skip a line.