What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 130 Stack Exchange communities.

Possible Duplicate:
Code block is not properly formatted when placed immediately after a list item

Okay, so if I'm posting a code block after a number, the formatting doesn't work. If you take a look at my view by editing it, you will see that it looks correct.

  1. This is a test

    Test code Test line 2

And then I put a normal line, copy the above text exactly, and:

Test code
Test line 2

Any chance of getting this fixed?

share|improve this question

marked as duplicate by animuson, Tim Stone, Oded, gnat, Toon Krijthe Nov 15 '12 at 18:32

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.

2 Answers 2

  1. This is a test
    Test line 2

seems to me that the formatting is off (as far as new lines go) but there's a meta post that covered that somewhere (I'll see if I can find it, and post the link here)

EDIT: using the <br> HTML tag I can force a new line, just use the ` character (beside the 1 on the keyboard) to end/restart the code around it.

what I typed above: This is a test`<br>`Test line 2

share|improve this answer

Add an extra 4 spaces when you have code just after a list item:

  1. This is a test

    Test code
    Test line 2
    
share|improve this answer

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