rem: line = line.replace(/ /g, "&middot;"); line = line.replace(/\t/g, "&raquo;" + "".pad(3)); 
add: line = line.replace(" ", "&middot;", "g"); var offsetCorrector = 0; line = line.replace("\t", function(str, offset) { var a = ((offset + offsetCorrector) % colorediffsGlobal.tabWidth == colorediffsGlobal.tabWidth - 1)?"":"\t"; offsetCorrector += colorediffsGlobal.tabWidth - (offset + offsetCorrector) % colorediffsGlobal.tabWidth - 1; return "&raquo;" + a; }, "g" ); 
context: 			il.files.forEach(function(file) {					file.chunks.forEach(function(chunk) {							var replaceWhitespaces = function(line) {								if ( line ) {									line = line.replace(/ /g, "&middot;");									line = line.replace(/\t/g, "&raquo;" + "".pad(3));								}								return line;							}							chunk['old'].code = chunk['old'].code.map(replaceWhitespaces);							chunk['new'].code = chunk['new'].code.map(replaceWhitespaces);						});				});
meta: 4572	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4572/0b2e0dfb69637fcc4af6c3751b6445f8cd3d0e0d/show-whitespaces-transformation.js/clean/content/colorediffs/transformations/show-whitespaces-transformation.js