Troubles with [list].

Rydian

Resident Furvert™
OP
Member
Joined
Feb 4, 2010
Messages
27,880
Trophies
0
Age
36
Location
Cave Entrance, Watching Cyan Write Letters
Website
rydian.net
XP
9,111
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.
QUOTE said:
Before a list.
  • 1
  • 2
  • 3
After a list.




2 - You need THREE newlines to show just ONE space between items in a list. This is most likely related to the first...
Code:
[list]
[*]1
[*]2
[/list]
No space.
QUOTE said:
  • 1
  • 2
No space.
Code:
[list]
[*]1

[*]2
[/list]
Should be a space, but it's not there.
QUOTE said:
  • 1
  • 2
Should be a space, but it's not there.
Code:
[list]
[*]1


[*]2
[/list]
Should be two spaces, but it's one.
QUOTE said:
  • 1
  • 2
Should be two spaces, but it's one.




3 - Can't have an ordered list nested in an unordered list, because when the ordered one ends, the unordered container also ends prematurely.
CODE
  • Frank.
  • John.
    1. Frank's Son.
    2. Frank's Daughter.
  • Billy.
  • Bob.

QUOTE
  • Frank.
  • John.
  • Frank's Son.
  • Frank's Daughter.
[*]Billy.[*]Bob.




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

tj_cool

Site dev
Supervisor
Joined
Jan 7, 2009
Messages
10,064
Trophies
2
Location
This planet
XP
3,109
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
tongue.gif
)

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
closedeyes.gif


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).
 

p1ngpong

Gamer Professional Deluxe
Supervisor
Joined
Apr 18, 2008
Messages
6,876
Trophies
3
Location
DS Scene
Website
imgur.com
XP
11,411
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.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Psionic Roshambo @ Psionic Roshambo:
    Float like a butterfly burns when I pee lol
    +1
  • BigOnYa @ BigOnYa:
    So does that mean your date was not good? It burns now?
    +1
  • K3Nv2 @ K3Nv2:
    Got two new stds in one night
    +1
  • BigOnYa @ BigOnYa:
    Giggity
    +1
  • The Catboy @ The Catboy:
    I don't bite! Minus the times when I did bite
  • The Catboy @ The Catboy:
    Like 5 minutes ago
  • K3Nv2 @ K3Nv2:
    Billie needs her lunch
  • K3Nv2 @ K3Nv2:
    Ffs papa brought back the cheeseburger pizza it's like the only decent pie they had since the 80s
  • BigOnYa @ BigOnYa:
    I'm not a fan of papa johns, but that does sound good. We hardly order out pizza, I like making my own, but when we do its donatoes
  • K3Nv2 @ K3Nv2:
    I get them like once every two months anymore
  • K3Nv2 @ K3Nv2:
    Just because it's half a mile from where I live
  • BigOnYa @ BigOnYa:
    Request next time you order, that Shaq deliver it to you
  • K3Nv2 @ K3Nv2:
    I want him to buy me a chain also
  • K3Nv2 @ K3Nv2:
    Open it right next to the one we have
    +1
  • BakerMan @ BakerMan:
    guys should i make a new thread and just count the amount of posts until kyle, luke or leo joins the thread for fun?
  • BakerMan @ BakerMan:
    kyle's fine, just waiting for that wario joke

    luke and leo though, they yap until the thread's enjoyability is about halved
  • K3Nv2 @ K3Nv2:
    Leo is Luke's alterego when he gets hard
  • BigOnYa @ BigOnYa:
    Luke is gone, he got banned. And I'm surprised Leo hasn't yet
  • K3Nv2 @ K3Nv2:
    Subway was actually pretty decent tonight
  • BigOnYa @ BigOnYa:
    Wut you get, a seafood and psi salad sub
  • K3Nv2 @ K3Nv2:
    Psi had my footlong meatball special
    +1
  • PandaPandel @ PandaPandel:
    i want a meatball sandwich
    now
  • K3Nv2 @ K3Nv2:
    Gay
  • BigOnYa @ BigOnYa:
    Bout time you came out and admitted it
  • K3Nv2 @ K3Nv2:
    Bigonya talks to himself often
    +1
    K3Nv2 @ K3Nv2: Bigonya talks to himself often +1