Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 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

The <!-- language: lang-none --> hint seems to add unwanted line break after each line.

Without the hint:

code line;
another line;

With the hint:

code line;
another line;

Using IE8.

Screent shot

share|improve this question
I'm not seeing it in Chrome and I don't have IE8 handy. Mind posting a screenshot? – Adam Lear May 25 '12 at 22:03
@AnnaLear Done. Also, when the page loads, the lines are condensed as they should be, and only after a second they expand. – GSerg May 25 '12 at 22:05
@AnnaLear <br>s are inserted after each code line in the second code block. I believe this happens after page load. – GSerg May 25 '12 at 22:15
Out of interest, why would one use lang-none and not <pre>...</pre>? – eggyal Jun 7 '12 at 6:53
@eggyal I like to keep it semantically correct, so try to use lang-none for languages that have no prettify support and <pre> for things like tables. – GSerg Jun 7 '12 at 9:54

As you noted, Prettify is inserting two <br> elements in between each line in IE 8 (and IE 9's compatibility mode).

In Firefox 12 and Chrome 19, it inserts only one. IE9 appears to also work (outside the IE8 compatibility mode).

You should probably report this to the authors of Prettify.

share|improve this answer
Okay... I have. Let's see if it helps ;) – GSerg May 25 '12 at 22:36
If you reproduced, it might be wise to tag the question accordingly – ajax333221 May 26 '12 at 5:49
Hmm, yeah... I kinda should tag this status-deferred, since can't really do anything about it unless prettify is fixed. – Shog9 May 26 '12 at 5:51
It would appear it doesn't happen anymore, at least not in this question. Did you update prettify? – GSerg Jan 8 '13 at 21:27
At least once, @GSerg. – Shog9 Jan 8 '13 at 21:28
Yes, fixed here and on SO. [status-completed] I guess. – GSerg Jan 8 '13 at 21:40
Ok - marked as such. – Shog9 Jan 8 '13 at 21:41

You must log in to answer this question.

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