rem: firstPos = document.firstChar(currentLine); if (firstPos != -1) { var currentString = document.line(currentLine); indentation = indentString(currentString.substring(0, firstPos)); 
add: firstPosVirtual = document.firstCharPosVirtual(currentLine); if (firstPosVirtual != -1) { indentation = indentString(g50spaces.substring(0, firstPosVirtual)); 
context: function keepIndentation(line){    var currentLine = line - 1;    if (currentLine < 0)        return -1;    var indentation = -1;    var firstPos;    var lineDelimiter = gLineDelimiter;    // search non-empty line, then return leading white spaces    while (currentLine >= 0 && lineDelimiter > 0) {        firstPos = document.firstChar(currentLine);        if (firstPos != -1) {            var currentString = document.line(currentLine);            indentation = indentString(currentString.substring(0, firstPos));            break;        }        --currentLine;        --lineDelimiter;    }    return indentation;}
meta: 1078	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1078/cf2ffaa32d876fe8f95a098900ec8c956af8ab1e/script-indent-c-test.js/clean/kate/scripts/script-indent-c-test.js