Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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:

http://theartofoffice.blogspot.com/

(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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.