Permalink
Browse files

Fixed missing new lines in double click view in IE8.

  • Loading branch information...
1 parent a7d514e commit dfd8a3d618b05f4794d5b060ce68efaf98c537d8 @alexgorbatchev committed Jul 2, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/shCore.js
View
@@ -77,7 +77,7 @@ var sh = {
tagName : 'pre',
strings : {
- expandSource : 'expand',
+ expandSource : 'expand source',
help : '?',
alert: 'SyntaxHighlighter\n\n',
noBrush : 'Can\'t find brush for: ',
@@ -1127,7 +1127,7 @@ function quickCodeHandler(e)
for (var i = 0; i < lines.length; i++)
code.push(lines[i].innerText || lines[i].textContent);
- code = code.join('\n');
+ code = code.join('\r\n');
// inject <textarea/> tag
textarea.appendChild(document.createTextNode(code));

0 comments on commit dfd8a3d

Please sign in to comment.