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 d153210c6..8b30a5dc3 100755
--- a/www/extras/yui-webgui/build/code-editor/code-editor.js
+++ b/www/extras/yui-webgui/build/code-editor/code-editor.js
@@ -416,8 +416,8 @@
str = str.replace(/{/gi, 'RIGHT_BRACKET');
str = str.replace(/}/gi, 'LEFT_BRACKET');
- // before
for IE8 so lines show up correctly
- if ( this.browser.ie && this.browser.ie <= 8 ) {
+ // before
for IE6 so lines show up correctly
+ if ( this.browser.ie && this.browser.ie <= 6 ) {
str = str.replace(/\r?\n/g, "
");
}
@@ -574,7 +574,12 @@
var html = this.getEditorText();
// Fix line breaks
- html = html.replace( /\n/g, "
");
+ if ( this.browser.ie <= 6 ) {
+ html = html.replace( /\n/g, "
" );
+ }
+ else {
+ html = html.replace( /\n/g, "
");
+ }
html = html.replace( /\t/g, " " );
// Apply new highlighting