add: data = data.replace(/\<pre\>((?:.|\n)*?)\<\/pre\>/gm, function(s) { return s.replace(/<br\b[^>]*>/gi,'\n'); }); 
context:     this.layoutsource = function(data) {        data = data.replace(            /\s*(<(p|div|h.|ul|ol|dl|menu|dir|pre|blockquote|address|center|table|thead|tbody|tfoot|tr|th|td))\b/ig, '\n$1');        data = data.replace(            /\s*(<\/(p|div|h.|ul|ol|dl|menu|dir|pre|blockquote|address|center|table|thead|tbody|tfoot|tr|th|td)>)\s*/ig, '$1\n');        return data.strip();    };
meta: 2380	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2380/37c69c07a0669d4d457c8fcc354a69495bc411b9/kupueditor.js/clean/kupu/common/kupueditor.js