What is meta? ×

For example in this question that I asked, I wanted to display a blank line at the end of the data in code tags. But I was not able to do that in the normal way.

Is there a workaround or is it simply not possible at all?

I want to display something like this:

some code
<empty line>
some more code
<empty line>

Problem is that the last gets stripped from the code tags!

share|improve this question
I don't see what the purpose of that is –  Earlz May 13 '10 at 16:59
@Earlz: my paragraph ends are marked by an empty line! –  Moeb May 13 '10 at 17:06

2 Answers 2

up vote 3 down vote accepted

What about:

this.blankLastLine = true;


<pre><code>this.blankLastLine = true;

share|improve this answer
uniformity => better! –  Moeb Jul 5 '10 at 15:20
This might not have worked.

I don't imagine I know why you would have an empty line at the end, but if you really need them, you can try to use a character which doesn't necessarily display. For example, on my screen, this is a blank line at the end.

Real "blank" lines are not possible as the end of a code block is determined by the presence of non-blank characters.

share|improve this answer
That character is not exactly invisible... –  Robert Harvey May 13 '10 at 17:08
its invisible to me! how did you do it? –  Moeb May 13 '10 at 17:11
got it! U+200D –  Moeb May 13 '10 at 17:13
Ahh, U+200D is the "magic wand" character? On some computers (Robert's and mine for instance) it displays like ... a magic wand ... but on other computers, it is completely invisible. Sweet! –  Jørn Schou-Rode May 13 '10 at 20:33

You must log in to answer this question.

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