Closed GoogleCodeExporter closed 8 years ago
I have to find a way to run IE7 before I can address this so it may take some
time.
Do you know if the issue is apparent on IE8?
Original comment by mikesamuel@gmail.com
on 14 Aug 2009 at 6:06
It is an issue in IE8 as well as IE7. We've got a fix for it, which we're happy
to
share. What's the best way to submit it?
Original comment by MelHarb...@gmail.com
on 16 Sep 2009 at 4:05
Could you attach a diff to this issue?
Original comment by mikesamuel@gmail.com
on 16 Sep 2009 at 6:07
I'm attaching the whole prettify.js file with the fix applied. There's one other
change that we've made to the file, which is to the definition of PR_TAG - you
may or
may not want that as well.
Original comment by MelHarb...@gmail.com
on 17 Sep 2009 at 9:29
Attachments:
Original comment by mikesamuel@gmail.com
on 3 Oct 2009 at 8:51
The attached code seems to use '\r' on IE 7 and 8 and '\r\n' on IE 6. Isn't
that
backwards? Or am I just on crack?
Original comment by mikesamuel@gmail.com
on 6 Oct 2009 at 5:16
Mel, can you confirm which line break should be used on which version of IE?
Original comment by mikesamuel@gmail.com
on 4 Nov 2009 at 8:24
Hi Mike - Take a look at
http://stackoverflow.com/questions/136443/why-doesnt-ie7-
copy-precode-blocks-to-the-clipboard-correctly/159582#159582 which contains
more
background info about this fix.
The approach detailed in that StackOverflow post is the same as Mel's: /r is
the
mapping for IE7/IE8, while /r/n is the mapping for IE6.
BTW, I've tested this fix on IE8 and it works great.
Original comment by justingr...@gmail.com
on 23 Nov 2009 at 12:56
Fixed at revision 89. Please see
http://code.google.com/p/google-code-prettify/source/diff?spec=svn89&r=89&format
=side&path=/trunk/src/prettify.js#sc_svn88_1322
for the code that chooses the appropriate linebreak.
Original comment by mikesamuel@gmail.com
on 23 Nov 2009 at 5:08
Original issue reported on code.google.com by
fpars...@gmail.com
on 2 Apr 2009 at 5:09