Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have created a blog on Blogger and would like to display some short code snippets in my posts. I used pre tag with some simple formatting (no syntax highlighting). When displayed in browser code looks fine, but when I try to copy and paste it to Notepad, the text is all on one line. Here is what this looks like:

(hopefully it is all right to post the address here). This happens only with Internet Explorer (I use IE 8), while Firefox, Opera and Google Chrome handle copy / paste correctly. Thank you in advance.

share|improve this question
possible duplicate of Why doesn't IE7 copy <pre><code> blocks to the clipboard correctly? – slhck May 7 '11 at 12:52
up vote 1 down vote accepted

Thank you for the comment. Actually, I was able to fix the issue by setting an option: Blogger Dashboard -> Settings -> Formatting -> Convert Line Breaks = No.

enter image description here

Now there are no br tags inside my pre tags and IE8 copies the snippets correctly.

share|improve this answer

You must log in to answer this question.