Skip to content

Instantly share code, notes, and snippets.

@perlDreamer
Created February 17, 2010 02:36
Show Gist options
  • Save perlDreamer/306227 to your computer and use it in GitHub Desktop.
Save perlDreamer/306227 to your computer and use it in GitHub Desktop.
diff --git a/www/extras/yui-webgui/build/code-editor/code-editor.js b/www/extras/yui-webgui/build/code-editor/code-editor.js
index 955bdeb..5593f1c 100755
--- a/www/extras/yui-webgui/build/code-editor/code-editor.js
+++ b/www/extras/yui-webgui/build/code-editor/code-editor.js
@@ -418,6 +418,7 @@
// &nbsp; before <br> for IE8 so lines show up correctly
if ( this.browser.ie && this.browser.ie <= 8 ) {
+ alert("replace newlines for ie8");
str = str.replace(/\r?\n/g, "&nbsp;<br>");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment