PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_BBCodeParser » Bug #6335

List bug

Details

Submitted2005-12-23 02:31 UTC
Fromdavid dot coffin at flighthardware dot com
Assigneddufuz
StatusClosed
PackageHTML_BBCodeParser
PHP Version4.3.10
OSLinux
Roadmaps(Not assigned)

Comments

[2005-12-23 02:31 UTC] david dot coffin at flighthardware dot com

Description:
------------
I had applied all of the the newer revisions of HTML_BBCodeParser. There is a problem now where an extra empty list item is inserted at the beginning of the list when the bbcode appears as:

The bbcode workaround is when I place the list tag on the sam line as the opening tag:

[list=1][*] Item one
[*] Item two
[*] Item three
[/list]

This correctly results as:

1. Item one
2. Item two
3. Item three

Test script:
---------------
[list=1]
[*] Item one
[*] Item two
[*] Item three
[/list]

the result of this is:

1.
2. Item one
3. Item two
4. Item three

Expected result:
----------------
[list=1]
[*] Item one
[*] Item two
[*] Item three
[/list]

the result of this is:

1. Item one
2. Item two
3. Item three