if (newlineChar == "\n"){ text = text.replace(/\r\n/g, "\n"); text = text.replace(/\r/g, "\n"); } else if (newlineChar == "\r"){ text = text.replace(/\r\n/g, "\r"); text = text.replace(/\n/g, "\r"); }else{ text = text.replace(/([^\r])\n/g, "$1\r\n").replace(/\r([^\n])/g, "\r\n$1"); } return text; 
if (newlineChar == "\n"){ text = text.replace(/\r\n/g, "\n"); text = text.replace(/\r/g, "\n"); } else if (newlineChar == "\r"){ text = text.replace(/\r\n/g, "\r"); text = text.replace(/\n/g, "\r"); }else{ text = text.replace(/([^\r])\n/g, "$1\r\n").replace(/\r([^\n])/g, "\r\n$1"); } return text; 
dojo.string.normalizeNewlines = function(/*string*/text, /*string? (\n or \r)*/newlineChar){// summary://	Changes occurences of CR and LF in text to CRLF, or if newlineChar is provided as '\n' or '\r',//	substitutes newlineChar for occurrences of CR/LF and CRLF	if (newlineChar == "\n"){		text = text.replace(/\r\n/g, "\n");		text = text.replace(/\r/g, "\n");	} else if (newlineChar == "\r"){		text = text.replace(/\r\n/g, "\r");		text = text.replace(/\n/g, "\r");	}else{		text = text.replace(/([^\r])\n/g, "$1\r\n").replace(/\r([^\n])/g, "\r\n$1");	}	return text; // string}
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/2f1d2cb699c9d9329e8b782b0463156e211cb0f6/struts_dojo.js.uncompressed.js/buggy/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js.uncompressed.js