// Check if the current index is a white space. Do not want to shape a \n.
// The last character is always a must-break even if it's not a \n.
Length numberOfCharactersToShape = currentIndex - previousIndex;
// Check if the current index is a white space. Do not want to shape a \n.
// The last character is always a must-break even if it's not a \n.
Length numberOfCharactersToShape = currentIndex - previousIndex;