Possible Duplicate:
Why do code blocks sometimes not “show” properly?

Code markdown seems to break down for this answer:

enter image description here

The markdown itself looks OK:

enter image description here

Did something change recently in the markdown display mechanism?

marked as duplicate by Tim Stone, jonsca, kiamlaluno, yoozer8, Toon Krijthe Aug 20 '12 at 19:41

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • You somehow introduced non-breaking spaces into the last three lines. Can you add your browser information, as well as how you got the code into the editor (copied from an IDE vs. typed directly, etc)? – Tim Stone Aug 20 '12 at 6:50
  • @TimStone: Google Chrome on Win8, pretty sure I typed this directly in the browser. Is there a shortcut key for a non-breaking space? – Andomar Aug 20 '12 at 7:01
  • I'm not sure about a shortcut, but I do know that this (random non-breaking spaces appearing) has happened to other people in Chrome before. Unfortunately, reproducing it hasn't proven to be very easy. – Tim Stone Aug 20 '12 at 7:04
  • Using Eclipse by any chance? See this related answer I posted a while ago. – Shadow Aug 20 '12 at 7:41
  • @TimStone: Looks like alt-space is a shortcut for nonbreakable space in Chrome, at least under MacOS X – Andomar Aug 20 '12 at 12:42

Not sure what wonderful characters were used instead of a space on those three lines, but re-indenting the lines fixed the issue.

When deleting the whitespace characters one-by-one, the preview display showed that every second 'space' did not affect the display; perhaps it was a non-breaking space instead of a regular space.

In other words, not a markdown bug, but rather a case of unsupported input.

  • Well found, "bug" seemed the most fitting of the meta required tags +1 – Andomar Aug 20 '12 at 7:03

Not the answer you're looking for? Browse other questions tagged .