TVTropes Now available in the app store!
Open

Follow TV Tropes

Following

Wikicode parsing bugs

Go To

Stratadrake Dragon Writer Since: Oct, 2009
Dragon Writer
#1: Jun 5th 2011 at 1:24:52 PM

I found a new one. Not a big one, but if you stuff a list inside a quoteblock, then try to add a list afterwards, this can cause the second list to not render correctly.

First example, source code and result:


* Item 1
* Item 2
* Item 3
* Item 4
* Item 1
  • Item 2

  • Item 3
  • Item 4

  • Second example, code and result:



    * Item 1
    * Item 2

    * Item 3
    * Item 4


    • Item 1
    • Item 2

    • Item 3
    • Item 4

    [EDIT] Whoops, looks like we have another bug, the [[quoteblock]] tag gets priority over the no-wiki tag. Shouldn't that be the other way around?

    Anyway. Notice in the first example, the first list item (inside the quoteblock) isn't recognized because it doesn't occur at the start of a line. And the outside list, while parsed, isn't wrapped in a <ul> container and fails to display list bullets.

    More specifically, the rendered HTML source shows that it wasn't nested correctly during the parsing:

    <div class="quoteblock" >* Item 1
    <ul ><li> Item 2</div>
    <p></p></li><li> Item 3
    </li><li> Item 4
    </li></ul>

    But the second example (quoteblock tags placed on separate lines) works fine.

    Okay, so this probably falls under the "don't do that" category, but I'll just mention it anyway for the record.

    edited 5th Jun '11 1:33:16 PM by Stratadrake

    An Ear Worm is like a Rickroll: It is never going to give you up.
    Add Post

    Total posts: 1
    Top