mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 10:40:34 -05:00
Don't expand tabs; just use a space.
This commit is contained in:
@@ -122,7 +122,7 @@ namespace ts {
|
||||
let lineEnd = getPositionOfLineAndCharacter(file, firstLine + i + 1, 0);
|
||||
let lineContent = file.text.slice(lineStart, lineEnd);
|
||||
lineContent = lineContent.replace(/\s+$/g, ""); // trim from end
|
||||
lineContent = lineContent.replace("\t", " "); // normalize tabs to 4 spaces
|
||||
lineContent = lineContent.replace("\t", " "); // convert tabs to single spaces
|
||||
|
||||
output += lineContent + sys.newLine;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user