possible bug with the Comcode list tag

Post

Posted
Rating:
#6687 (In Topic #1732)
Avatar
Standard member
cwdean is in the usergroup ‘Fan in action’
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.

 
Online now: No Back to the top

Post

Important!
Posted
Rating:
#6688
Avatar
Site director
admin is in the usergroup ‘Administrators’

Automated fix message

cwdean said

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.

 
This issue has now been filed on the tracker as issue #4226, with a fix.
Important!

Post

Posted
Rating:
#6689
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
I could not reproduce exactly as stated, but on reviewing the code I think the above is the correct fix.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#6690
Avatar
Standard member
cwdean is in the usergroup ‘Fan in action’

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.
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Users online:

deepu_ms, Salman, Vaiva, Manu

Forum statistics:
  • 1,361 topics, 5,909 posts, 7,289 members
  • Our newest member is PolicyGaga
Birthdays:
Back to Top