rem: oldCodeDecorated += "<div class='delline' title='" + file.name + ":" + oldLine + "'>" + oldPaddedLine +" </div>"; newCodeDecorated += "<div class='addline' title='" + file.name + ":" + newLine + "'>" + newPaddedLine +" </div>"; 
add: oldCodeDecorated += "<div class='delline' title='" + file.name + ":" + oldLine + "'>" + oldPaddedLine + "</div>"; newCodeDecorated += "<div class='addline' title='" + file.name + ":" + newLine + "'>" + newPaddedLine + "</div>"; 
context: 				il.files.map(function(file) {						return dom.createElement(							"table", {'class':'file-diff', title:file.name, id:file.name, width:"100%"},							dom.createElement(								"tr", {'class':'title'},								dom.createElement(									"td", {colspan:2},									dom.createElement(										"pre", {'class':'title'},										file.title									)								)							),							//precode,							file.chunks.map(function(chunk) {									function countLength(s) {										if (s) {											return s.replace("\t", function(str, offset) {return "".pad(colorediffsGlobal.tabWidth - offset % colorediffsGlobal.tabWidth);}, "g").length;										} else {											return 0;										}									}									var oldCodeDecorated = "";									var newCodeDecorated = "";									var oldLine = chunk['old'].line;									var newLine = chunk['new'].line;									var oldCode = chunk['old'].code;									var newCode = chunk['new'].code;									var oldRawCode = chunk['old'].raw_code;									var newRawCode = chunk['new'].raw_code;									var l = chunk['old'].code.length;									for (var i=0; i < l; ++i) {										var rawOldLineLength = countLength(oldRawCode[i]);										var rawNewLineLength = countLength(newRawCode[i]);										var maxLength = Math.max(rawOldLineLength, rawNewLineLength);										var paddingOld = "".pad(maxLength - rawOldLineLength);										var paddingNew = "".pad(maxLength - rawNewLineLength);										var oldPaddedLine = (oldCode[i])?oldCode[i]:"" + paddingOld;										var newPaddedLine = (newCode[i])?newCode[i]:"" + paddingNew;										if (oldPaddedLine.length == 0) oldPaddedLine = " ";										if (newPaddedLine.length == 0) newPaddedLine = " ";										if ( oldCode[i] == null ) {											oldCodeDecorated += "<div class='addline'>" + oldPaddedLine + "</div>";											newCodeDecorated += "<div class='addline' title='" + file.name + ":" + newLine + "'>" + newPaddedLine +" </div>";											newLine++;										} else if ( newCode[i] == null ) {											newCodeDecorated += "<div class='delline'>" + newPaddedLine + "</div>";											oldCodeDecorated += "<div class='delline' title='" + file.name + ":" + oldLine + "'>" + oldPaddedLine +" </div>";											oldLine++;										} else {											if ( oldCode[i] == newCode[i] ) {												oldCodeDecorated += "<div class='steadyline' title='" + file.name + ":" + oldLine + "'>" + oldPaddedLine +" </div>";												newCodeDecorated += "<div class='steadyline' title='" + file.name + ":" + newLine + "'>" + newPaddedLine +" </div>";											} else {												oldCodeDecorated += "<div class='delline' title='" + file.name + ":" + oldLine + "'>" + oldPaddedLine +" </div>";												newCodeDecorated += "<div class='addline' title='" + file.name + ":" + newLine + "'>" + newPaddedLine +" </div>";											}											newLine++;											oldLine++;										}									}									return [										dom.createElement(											"tr", {'class':'linetag'},											dom.createElement("td", {colspan:2}, "@@"+chunk['old'].line + "," +chunk['new'].line +"@@")										),										dom.createElement(											"tr", {'class':'diffs'},											dom.createElement(												"td", {valign:'top', width:'50%'},												createCodeElement('left', oldCodeDecorated)											),											dom.createElement(												"td", {valign:'top', width:'50%'},												createCodeElement('right', newCodeDecorated)											)										)									];								}							)						);					}
meta: 4572	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4572/0acb7b5331a5c1ebe8b94323af952970fe098f7c/side-by-side-view.js/clean/content/colorediffs/views/side-by-side-view.js