Menu

Having Trouble Mixing bullets and numbers

Help
2002-01-25
2012-10-11
  • Mark Phillips

    Mark Phillips - 2002-01-25

    I want to make an outline like this:
    1. Step one
       This is how you do step one.
       *  Do this
       *  Do this
          * Do this
          * Do this
    2. Step 2
       This is how you do step two.
       *  Do this
       *  Do this
          * Do this
          * Do this

    But, the numbers always start at 1. The bullets and indents work out ok. I read in the Text Formatting Rules that I can mix and match bullets and numbers. I tried:

    #Step one
    %%%This is how you do step one.
    *Do this
    *Do this
    **Do this
    **Do this
    #Step 2
    %%%This is how you do step two.
    *Do this
    *Do this
    **Do this
    **Do this

    But Step 2 has a 1 as the number.

    Thanks!
    Mark

     
    • Geoffrey T. Dairiki

      There are two  reasons it's not working for you:

      #Step One.

      is a top level list item.  (Since you have one #).  This start an ordered list <ol>.

      *Do this

      is another top level list item.  (One *.)  This ends the ordered list and starts an unordered list (<ul>).

      #Step 2

      (Closes the <ul>, and starts a fresh <ol>.  So numbers start again at 1.)

      The other problem is the newline between '#Step one' and '%%%This is how...'.  Each list item has to be contained on a single line.

      This will do what you want:

      #Step one %%%This is how you do step one.
      **Do this
      **Do this
      ***Do this
      ***Do this
      #Step 2%%%This is how you do step two.
      **Do this
      **Do this
      ***Do this
      ***Do this

      (I just tested it at: http://phpwiki.sf.net/phpwiki/SandBox.  If you look quick, it'll still be there.)

       
      • Mark Phillips

        Mark Phillips - 2002-01-26

        Thanks!

        Mark

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.