How to best handle imported spoilers with blank lines?

Do you have specific examples? Because [spoiler] works with multilines

And they lived [spoiler] happilly
ever after
[/spoiler] :heart:

And they lived happilly
ever after
:heart: