# Does the new spoiler code work?

I tried editing a question earlier, to implement the new spoiler code, and ran into some troubles. I'll be using this thread to test my usage of that code to make sure I'm doing it right - instead of messing with any more threads in the parent site.

This is a spoiler:

Hello! I'm a spoiler!

This is a really long spoiler:

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

These are two adjacent spoiler paragraphs:

! Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

! Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Looks like there may indeed be something broken with the feature. Added the bug tag to this question.

Do a Ctrl-F5 for a hard refresh to get the new code into your local cache.

It worked for me!

>! although the two next to each other in your question body

>! still do not get hidden while they are separated by a line...


creates:

! although the two next to each other in your question body

! still do not get hidden while they are separated by a line...

>! but maybe if I try
>!


but maybe if I try

to link them together, it will work.

• Right. This is why I added the bug tag. It's working, but apparently broken for "special" cases. – Iszi Dec 3 '10 at 15:02
• Did you copy GraceNote's idea from the other thread, or did it go the other way around? ;-) – Iszi Dec 3 '10 at 19:26
• Independently! My edit precedes her post by 48 seconds... :) – yhw42 Dec 3 '10 at 21:15

It works now. I spoilered How to fix this scenario for D&D Encounters?.

• It's still part-broken though, as seen in my question post. You bypassed the issue by combining the two paragraphs. – Iszi Dec 3 '10 at 15:08
• @Iszi I agree, but I think combining paragraphs is an acceptable workaround in this case. – C. Ross Dec 3 '10 at 15:22
• I disagree. There's a reason paragraphs exist in the written human languages, and they are far from being an uncommon method for arranging text. The code should not be accepted as broken for those cases. – Iszi Dec 3 '10 at 15:31
• @Iszi I meant in the case of that specific question. – C. Ross Dec 3 '10 at 15:40
• @CRoss - I see. Went ahead and fixed the paragraphs with GraceNote's workaround from the other thread, though. – Iszi Dec 3 '10 at 16:41
• @Iszi Good idea. – C. Ross Dec 3 '10 at 17:43

It should work now; the spoiler CSS class was not on the metas yet.

(you may still need to hard refresh as yhw42 indicated)

• It works generally, for stuff that's on one line or for contiguous paragraphs. However, separate adjacent paragraphs break the code, as seen above. The problem did/does not only exist on the metas either. I only brought my testing here (as noted in my initial post) to keep the parent site clean. The whole reason I came here was because of the same break noted above. Please see my new thread (since I can't remove "status-completed" from this one) for more details: meta.rpg.stackexchange.com/q/759/197 – Iszi Dec 3 '10 at 15:35