4
$\begingroup$

In this answer my spoiler tags were not working, as the ! character is ignored and displayed, as if it was quoted text. How do I get a workaround of this?

$\endgroup$

2 Answers 2

3
$\begingroup$

I have fixed it for you.

This is HTML, and you can learn it here

Spoiler tags don't work when you try and have paragraphs

For instance:

!This spoiler tag doesn't work

Because I have written:

>!This spoiler tag
doesn't work

And the new line causes an error

If you want to add a new line then add

<br>

which means line break.

So now

This spoiler tag
works :P

Because I wrote

>!This spoiler tag<br>works :P

Alternatively you can write

>!This spoiler tag<br>
>!works :P

and you still get

A spoiler tag
that works :P

$\endgroup$
3
  • $\begingroup$ Thanks for the heads up. I was struggling with this in more than one of my posts. $\endgroup$
    – Matsmath
    Sep 17, 2016 at 15:23
  • $\begingroup$ @Matsmath, added a place where you can learn about it $\endgroup$ Sep 17, 2016 at 15:24
  • 1
    $\begingroup$ (+1) for :P :P $\endgroup$
    – user14478
    Sep 17, 2016 at 15:30
4
$\begingroup$

You has a paragraph break in the middle of your spoilertag, which caused it not to work properly. @BeastlyGerbil has now fixed this.


For future reference, paragraph breaks don't work very well with spoilertags. You need to include a double space at the end of every line, including the black line between paragraphs. Doing this:

>! stuff

>! more stuff

gives this output:

! stuff

! more stuff

So you have to do this:

>! stuff  
>!  
>! more stuff

to get the desired output:

stuff

more stuff

$\endgroup$
2
  • $\begingroup$ Thanks! I am going to accept the other answer because @Beasty Gerbil actually fixed the issue. $\endgroup$
    – Matsmath
    Sep 17, 2016 at 15:23
  • $\begingroup$ Well, at least you don't get rep for an accept :P $\endgroup$ Sep 17, 2016 at 15:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .