Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 157 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

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
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 .