Forum:Multiline example in template documentation

I'm trying to document a template and since it's rather complicated, I need to post a multiline example of the template in the raw. But I cannot make it work. The nowiki tag eats the line breaks. The *expletive deleted* pre tag eats the line breaks as well and inserts an unrequested gray square above the code. A div with style="white-space: pre;" was ignored entirely. The poem tag destroys the page. And any and all combinations and permutations I tried, were equally unsuccessful.

Here's the page: w:c:dev:Template:JsMethod. (You will have to go into edit mode to see the line breaks in the sample.)

Can anybody help me trick the *expletive deleted* wikitext parser into displaying the text as intended? --


 * Nevermind. Adding a line break between the : and the opening &lt;pre&gt; "solved" the problem.