Spoiler is broken when it contains a list

Spoiler is broken when it contains a list

Postby Wuzzy » 10 Jul 2018, 01:14

Looks like the spoiler tag does not work when you nest a list inside it.

  • If you can read this text without doing anything, then I have PROVEN to you that spoilers are broken. xD
  • Another bullet point
  • Test test


Code:
{l Code}: {l Select All Code}
[spoiler]
[list]
[*]If you can read this text without doing anything, then I have PROVEN to you that spoilers are broken. xD
[*]Another bullet point
[*]Test test[/list]
[/spoiler]
Got too many bitcoins? I gladly take them: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH :-)
User avatar
Wuzzy
 
Posts: 607
Joined: 28 May 2012, 23:13

Re: Spoiler is broken when it contains a list

Postby Magellan » 10 Jul 2018, 15:25

Looks like it works fine if you add the spoiler tag item-by-item:

  • spoiler item 1
  • item 2

{l Code}: {l Select All Code}
[list]
[*][spoiler]spoiler item 1[/spoiler]
[*][spoiler]item 2[/spoiler]
[/list]


This may be desirable functionality since this way you can make a list with only some marked out items:

  • spoiler item 1
  • Unspoiled item
  • item 2

{l Code}: {l Select All Code}
[list]
[*][spoiler]spoiler item 1[/spoiler]
[*]Unspoiled item
[*][spoiler]item 2[/spoiler]
[/list]
I make Let's Play videos of FOSS games. You can find them on DTube and VidLii. I have also made a few small Free Software games, available on my GitHub page.
User avatar
Magellan
 
Posts: 34
Joined: 24 Mar 2017, 02:25
Location: USA

Who is online

Users browsing this forum: No registered users and 0 guests