From 47390c5d6e25612014a123fac7b6b0c65900d951 Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Tue, 22 Sep 2009 16:16:30 -0500 Subject: [PATCH] narrow down the browser detect --- www/extras/yui-webgui/build/code-editor/code-editor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; };