Troubles with [list].

Discussion in 'Site Discussions & Suggestions' started by Rydian, Sep 27, 2010.

Sep 27, 2010

Troubles with [list]. by Rydian at 12:04 AM (1,374 Views / 0 Likes) 11 replies

  1. Rydian
    OP

    Member Rydian Resident Furvert™

    Joined:
    Feb 4, 2010
    Messages:
    27,883
    Location:
    Cave Entrance, Watching Cyan Write Letters
    Country:
    United States
    Where to start? XD It's totally screwy.



    1 - It eats newlines. The entirety of the code eats newlines. Everywhere. NOT EVEN THE NEWLINE CHILDREN WERE SPARED.
    Code:
    Before a list.
    
    [list]
    
    [*]1
    
    [*]2
    
    [*]3
    
    [/list]
    
    After a list.
    Post that, then edit it... and you'll see it ate many of the newlines.



    And possibly more, but these are the easiest to pinpoint and reproduce.
     
  2. Rydian
    OP

    Member Rydian Resident Furvert™

    Joined:
    Feb 4, 2010
    Messages:
    27,883
    Location:
    Cave Entrance, Watching Cyan Write Letters
    Country:
    United States
    In addition (if I edit the original post I'll have to redo the spacing examples because it'll eat even more newlines) I found that the more nesting levels you have within
    • , the more newlines it eats.

      This makes keeping lists of info very, very annoying.
     
  3. tj_cool

    Supervisor tj_cool Stuff

    Joined:
    Jan 7, 2009
    Messages:
    9,942
    Location:
    This planet
    Country:
    Belgium
    Here's my examination of the problem. It probably doesn't help you all that much though. (Maybe it saves the Admins some time, I dunno [​IMG])

    I've tried it out and it seems it does indeed eat newlines. In HTML, the only way to split them up is with tags, nothing else seems to work. It seems to work fine on IPB 3.0, but I couldn't find the substituted HTML in the ACP because it's in a php file that I can't access [​IMG]

    After looking at the source, it seems they've added a behind each line:
    Code:
    before
    [list][*]one[br][/br]
    [*]two[br][/br]
    
    [*]three[br][/br][/list]
    after
    Which does indeed parse correctly:
    Code:
    before
    [list][*]one[br][/br]
    [*]two[br][/br]
    
    [*]three[br][/br][/list]
    after
    Though of course that'd be more typing work (unless an admin alters it to have the
    s in the substituted HTML).

    As for the List nesting, the code seems to be parsed incorrectly altogether:
    Code:
    [list][*]abc
    [*]def
    [list=1][*]123
    [*]456
    [/list]
    [*]ghi
    [/list]
    is parsed to:
    HTMLabc
    def
    123
    456

    ghi


    ^ as you can see, it ends the unordered list first, while it should end the ordered one.
    Again, I had at look at the IPB v3 version and there they seem to have "fixed" it by only using unordered lists (they use a class to see what kind of list it eventually becomes).
     
  4. Rydian
    OP

    Member Rydian Resident Furvert™

    Joined:
    Feb 4, 2010
    Messages:
    27,883
    Location:
    Cave Entrance, Watching Cyan Write Letters
    Country:
    United States
    Bump.
     
  5. tk_saturn

    Member tk_saturn GBAtemp Psycho!

    Joined:
    Jan 26, 2010
    Messages:
    3,327
    Country:
    United Kingdom
    Rydian...

    http://gbatemp.net/i-boardrules

    Given how many people have replied to the thread, I wouldn't go expecting it to be fixed. There's a few unfixed bugs in the parser, give up.
     
  6. Rydian
    OP

    Member Rydian Resident Furvert™

    Joined:
    Feb 4, 2010
    Messages:
    27,883
    Location:
    Cave Entrance, Watching Cyan Write Letters
    Country:
    United States
    This is a thread for the staff, not normal users (thus the bump to page 1).
     
  7. Overlord Nadrian

    Banned Overlord Nadrian Banned

    Joined:
    Jul 28, 2008
    Messages:
    6,671
    Location:
    Riviera
    Country:
    Belgium
    That still doesn't justify your seemingly infinite hunger for a higher postcount.
     
  8. Rydian
    OP

    Member Rydian Resident Furvert™

    Joined:
    Feb 4, 2010
    Messages:
    27,883
    Location:
    Cave Entrance, Watching Cyan Write Letters
    Country:
    United States
    It's a single post (versus my over 4,700) after a month's wait (which is most definitely not flooding) in a thread in the site discussion about an annoying forum parsing bug.

    Spamming for higher postcount, is it not.
     
  9. Overlord Nadrian

    Banned Overlord Nadrian Banned

    Joined:
    Jul 28, 2008
    Messages:
    6,671
    Location:
    Riviera
    Country:
    Belgium
    Nearly half of your 'over 4700' are posts like these: useless spam.

    Oh well, do as you wish, I'll stop whining.
     
  10. p1ngpong

    Supervisor p1ngpong Legit Boss Harold

    Joined:
    Apr 18, 2008
    Messages:
    6,296
    Location:
    DS Scene
    Country:
    Croatia
    Ive got nothing against a legitimate bug report being bumped if it has had no admin response for a significant amount of time. A month without a response is long enough for a bump under these circumstances as far as I am concerned. We appreciate reports of this nature being made.
     
  11. shaunj66

    Administrator shaunj66 Administrator

    Joined:
    Oct 24, 2002
    Messages:
    9,830
    Location:
    South England
    Country:
    United Kingdom
    Unfortunately unless Costello has time to dive into the sources necessary to fix this, this is one of those issues that will most likely be around until the next forum upgrade. Sorry.
     
  12. Rydian
    OP

    Member Rydian Resident Furvert™

    Joined:
    Feb 4, 2010
    Messages:
    27,883
    Location:
    Cave Entrance, Watching Cyan Write Letters
    Country:
    United States
    Alright, I'll just use/encourage color coding of sections instead of lists for now.
     

Share This Page