BBCode list: adding bullet point where none should be

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
Saint_hh
Registered User
Posts: 363
Joined: Thu Mar 31, 2005 5:16 pm
Location: Hamburg / Germany
Name: Kevin
Contact:

BBCode list: adding bullet point where none should be

Post by Saint_hh »

Hi everybody,

is a possible bug with the list bbode already known, where a bullet point is added in the first line, where none should be?
It's reproducible here:
  • line one is having a bullet point
    Line two not
    Line three not
The code:

Code: Select all

[list]line one is having a bullet point
Line two not
Line three not[/list]
As you see, no [*] is added, so there should be no bullet point.

Cheers

Kevin
User avatar
canonknipser
Registered User
Posts: 2096
Joined: Thu Sep 08, 2011 4:16 am
Location: Germany
Name: Frank Jakobs
Contact:

Re: BBCode list: adding bullet point where none should be

Post by canonknipser »

As far as i remember, this was introduced in 3.2 to avoid invalid html (<ul> not followed by <li> is invalid syntax).
Greetings, Frank
phpbb.de support team member
English is not my native language - no support via PM or mail
New arrival - Extensions and scripts for phpBB
User avatar
JoshyPHP
Code Contributor
Posts: 1287
Joined: Mon Jul 11, 2011 12:28 am

Re: BBCode list: adding bullet point where none should be

Post by JoshyPHP »

The [*] BBCode creates a list item. Creating a list with no list items is like hammering screws. For sure you can hold planks together but you may want to consider using the proper tools for it. I guess what you're looking for is some kind of indentation markup.

Anyway, you can choose the style of the list item markers in the BBCode with [list=none] or [list=square].
I wrote the library that handles markup in phpBB 3.2+.
Saint_hh
Registered User
Posts: 363
Joined: Thu Mar 31, 2005 5:16 pm
Location: Hamburg / Germany
Name: Kevin
Contact:

Re: BBCode list: adding bullet point where none should be

Post by Saint_hh »

Well, however you want to call it. The situation is, that the behavior of this bbcode has changed between all previous phpBB versions and 3.2
So my users used the undefined list bbcode to get some kind of tabs / shift in the text. Now it looks weird with this single bullet point in the first line.
But your "none" tag is doing the trick- thank you! 😊

I have more to puzzle out with list bbcodes in combination with other bbcodes. It seems now a clear, definite order of the bbcodes have to be kept. Otherwise you'll also get not the results you want to have.
Post Reply

Return to “[3.2.x] Support Forum”