possible bug with the Comcode list tag

Post

Posted
Rating:
#5990 (In Topic #1241)
I was creating a new FAQ entry today and to have nice formatting I attempted to use the Comcode list tag for the first time.  I like that you can have list elements span muliple lines.  Makes the output presentation much cleaner and readable.  I mimiced the example found in the Comcode Tutorial. 
Image

list tag bug.jpg

list tag bug.jpg

(Click to enlarge)


This is what I did:

Code

[list="1"]
[*] one
and blank line
[*] two
and blank line
[/list]

And this is the outcome I got:
  1.  
  2. one
    and blank line
  3. two
    and blank line

There should only be 2 entries but for some reason the list starts with an empty first slot, so I wind up with three.

To fix this, I did:

Code

[list="1"]one
and blank line
[*] two
and blank line
[/list]


That seemed to work.

Not sure if this same behavior exhibits itself across the site, but this is what was happening when I used the list tag while creating a new FAQ entry.

 

Post

Important!
Posted
Rating:
#5991

Automated fix message

System said

This is a spacer post for a website comment topic. The content this topic relates to: The GAP Project
This issue has now been filed on the tracker as issue #4226, with a fix.

Post

Posted
Rating:
#5992
I could not reproduce exactly as stated, but on reviewing the code I think the above is the correct fix.

Post

Posted
Rating:
#5993

Chris Graham said

I could not reproduce exactly as stated, but on reviewing the code I think the above is the correct fix.

Okay, thanks Chris.  I'll check out the hotfix and see if that addresses what I experienced.  Not a big deal as I was able to work around it, but wanted to share in case it hadn't been reported already.
0 guests and 0 members have recently viewed this.