1

Possible Duplicate:
List bullet missing with code block as the first paragraph of a list (Chrome 12)

On my most recent question I made an ordered list like so:

  1. 

        function foo(){
             alert('BAR');
        }

  2. 

        var foo = function (){
             alert('BAR');
        }

  3. 

        var foo = function bar(){
             alert('BAR');
        }

But it shows up with no numbers in the list!

no numbers?

What happened?!

5
  • Ordered lists don't work in code formatting. Your 1. and 2. aren't part of any language that I know of.
    – user102937
    Jun 14, 2012 at 15:20
  • @RobertHarvey but it does create the <ol> if you look at the output.
    – Naftali
    Jun 14, 2012 at 15:21
  • Break the code up into separate code formatting blocks.
    – user102937
    Jun 14, 2012 at 15:22
  • @RobertHarvey what do you mean?
    – Naftali
    Jun 14, 2012 at 15:22
  • 1
    They seriously haven't fixed this bug yet? What the hell Chrome.
    – Tim Stone
    Jun 14, 2012 at 15:24

1 Answer 1

0

Just remove the indent from the numeric list elements.

  1.     function foo(){
             alert('BAR');
        }
    
  2.     var foo = function (){
             alert('BAR');
        }
    
  3.     var foo = function bar(){
             alert('BAR');
        }
    
5
  • I want the numbered list. 1,2,3 -- they are example numbers
    – Naftali
    Jun 14, 2012 at 15:24
  • You don't seen them in my example above?
    – user102937
    Jun 14, 2012 at 15:24
  • 5
    @RobertHarvey: I dont (on Chrome)
    – Matt
    Jun 14, 2012 at 15:26
  • 2
    @Robert... I see none :-( [I am in Chrome]
    – Naftali
    Jun 14, 2012 at 15:26
  • I see them in the stock Android browser. (2.3)
    – John
    Jun 14, 2012 at 21:20

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