display bug in numbered lists

Bob Powell's Avatar

Bob Powell

01 Jul, 2014 01:31 AM

I created a ticket that contained some numbered paragraphs e.g.

  1. This sentence begins with (1)

  2. This sentence begins with (2)

this is an extra paragraph break btw. this and the next sentence

  1. This sentence begins with (3)

When I went to look at the ticket, the (3) at the beginning of the third numbered sentence was rendered as 1 instead of 3. As if the text was going through some "auto format" engine, stripping the leading numbers, and then regenerating them from an abstract but incorrect representation.

Clicking "edit ticket", it displays correctly, the sentences numbered 1, 2, 3.

Going back and viewing the entered ticket, it displays incorrectly, the sentences numbered 1, 2, 1.

That's a pretty strange bug.

Will be interesting to see if it repros right here.

  1. 1 Posted by Bob Powell on 01 Jul, 2014 01:35 AM

    Bob Powell's Avatar

    Hah, indeed, a self-reproducing bug report :-)

  2. 2 Posted by Nicole on 01 Jul, 2014 04:25 PM

    Nicole's Avatar

    Bob -

    We use Markdown for formatting in Lighthouse and Tender. The new paragraph you have causes Markdown to restart numbering. Even if you used all numeral 3's there it would behave the same. Example

    1. This sentence begins with (3)

    2. This sentence begins with (3)

    There are two possible solutions but they depend on the function of the new paragraph between numbers. If it is a second paragraph of text under item 2, then if you indent it Markdown knows to continue on with the proper count.

    If it is a regular paragraph just being used in the content, you can number all of your items like so

    1.. This sentence begins with (1)
    
    2.. This sentence begins with (2)
    
    this is an extra paragraph break btw. this and the next sentence
    
    3.. This sentence begins with (3)
    

    Which should produce like so:

    1.. This sentence begins with (1)

    2.. This sentence begins with (2)

    this is an extra paragraph break btw. this and the next sentence

    3.. This sentence begins with (3)

    The extra period interferes with the Markdown parser so it doesn't recognize the numbered list.

    Let me know if you have any questions.

    Thanks,
    Nicole

  3. Julien closed this discussion on 08 Jul, 2014 08:16 PM.

Discussions are closed to public comments.
If you need help with Lighthouse please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac