From d90a66ca2338b502f5be6ee72b3f663118a1ee76 Mon Sep 17 00:00:00 2001 From: SaschaNaz Date: Thu, 10 Dec 2015 01:32:07 +0900 Subject: [PATCH] crlf 2 --- src/services/formatting/formatting.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/services/formatting/formatting.ts b/src/services/formatting/formatting.ts index 4453bd299fc..ab0867bdd69 100644 --- a/src/services/formatting/formatting.ts +++ b/src/services/formatting/formatting.ts @@ -281,8 +281,8 @@ namespace ts.formatting { * to the initial indentation. */ function getOwnOrInheritedDelta(n: Node, options: FormatCodeOptions, sourceFile: SourceFile): number { - let previousLine = Constants.Unknown; - let child: Node; + let previousLine = Constants.Unknown; + let child: Node; while (n) { let line = sourceFile.getLineAndCharacterOfPosition(n.getStart(sourceFile)).line; if (previousLine !== Constants.Unknown && line !== previousLine) { @@ -385,8 +385,8 @@ namespace ts.formatting { parentDynamicIndentation: DynamicIndentation, effectiveParentStartLine: number): Indentation { - let indentation = inheritedIndentation; - var delta = SmartIndenter.shouldIndentChildNode(node) ? options.IndentSize : 0; + let indentation = inheritedIndentation; + var delta = SmartIndenter.shouldIndentChildNode(node) ? options.IndentSize : 0; if (effectiveParentStartLine === startLine) { // if node is located on the same line with the parent @@ -485,8 +485,8 @@ namespace ts.formatting { else { indentation -= options.IndentSize; } - - if (SmartIndenter.shouldIndentChildNode(node)) { + + if (SmartIndenter.shouldIndentChildNode(node)) { delta = options.IndentSize; } else {