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]
User avatar
Wuzzy
 
Posts: 989
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]
YouTube page (mostly Gentoo videos): https://www.youtube.com/channel/UC8F_ci ... voRGQR-fMQ |/| Homepage: https://hmagellan.com
User avatar
Magellan
 
Posts: 42
Joined: 24 Mar 2017, 02:25
Location: USA

Who is online

Users browsing this forum: No registered users and 1 guest

cron