Page 1 of 1

BBCode list: adding bullet point where none should be

Posted: Sat Feb 04, 2017 9:37 am
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

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

Posted: Sat Feb 04, 2017 10:17 am
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).

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

Posted: Sat Feb 04, 2017 10:24 am
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].

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

Posted: Sat Feb 04, 2017 10:57 am
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.