}
// Fill the buffer with blanks as if we added a "\n" to the end of
// the prev element.
// insertionStrategy.placeMatchingBlanks(editor,doc,insertionStrtegyKey,resultBuffer,startOffset-1);
insertionStrategy.placeMatchingBlanks(document, resultBuffer,
lineNumber, document.getLineOffset(lineNumber));
// replace the starting spaces
final String newIndentation = resultBuffer.toString();
final String oldIndentation = lineText.substring(0,