What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 127 Stack Exchange communities.

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
2  
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
add comment

2 Answers

up vote 3 down vote accepted

What about:

this.blankLastLine = true;

Source:

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

</code></pre>
share|improve this answer
    
uniformity => better! –  Moeb Jul 5 '10 at 15:20
add comment
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
3  
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
2  
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
add comment

You must log in to answer this question.

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