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 dba667acc..b0cb71751 100755
--- a/www/extras/yui-webgui/build/code-editor/code-editor.js
+++ b/www/extras/yui-webgui/build/code-editor/code-editor.js
@@ -100,7 +100,9 @@
YAHOO.widget.CodeEditor.prototype._cleanIncomingHTML = function(str) {
// before
for IE7 so lines show up correctly
- str = str.replace(/\r?\n/g, "
");
+ if ( this.browser.ie && this.browser.ie <= 7 ) {
+ str = str.replace(/\r?\n/g, "
");
+ }
return str;
};