Multi-line code blocks not working

This is a test:


if (foo())
{
    bar();
}

The code shows up as a single line in the preview, except that the full block shows a bunch of extra linefeeds. I’m not sure yet how it’ll look as a real post.

markn+ has the same problem in this thread.

Ok, it definitely eats the newlines. And unlike the preview, it doesn’t show a bunch of empty lines at the end of the block. So the behavior is different, but both are wrong.

Moderator Action

It works correctly using the old skin. It’s only broken in the new mobile skin.

I’ll make a note of it in the mobile skin thread and close this. If anyone has additional comments on this issue (or any other issue with the mobile skin), please put them in the mobile skin thread, which is here:

http://boards.straightdope.com/sdmb/showthread.php?t=835598

Thread closed.

This problem only occurs in the new, mobile-friendly skin. If you’d prefer, you can switch back to the old skin. There’s a blue bar at the bottom of the page with a drop-down to select your style.