Possible Duplicate:
When placing code directly after a list, the code is not recognized. Is this a bug?

Notice how here are 4 spaces of code before each line of code. The import statement at the top is not in the code block because if I indent it 4 spaces, even more sections break. Is something wrong? This worked yesterday.

marked as duplicate by Grace Note, jjnguy, Michael Mrozek, Ladybug Killer, Peter Ajtai Oct 18 '10 at 18:06

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.

  • 6
    This is the old "Code Block after Numbered List" bug. Just add <!-- Ridiculous --> between the numbered list and the import statement before you indent it, and it should work. Most people suggest an &nbsp;, but using an HTML comment makes it flow much more smoothly (that is, there won't be a hideous empty line between the code and the list). – Grace Note Oct 18 '10 at 16:38
  • 1
    I just added some text to help transition into the code. – jjnguy Oct 18 '10 at 16:39
  • @Grace - put that into an answer so I can accept it. – orokusaki Oct 18 '10 at 17:13

Browse other questions tagged .