File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -103,10 +103,10 @@ module.exports = {
103103 let offset = 0 ;
104104 let leadingWhitespaceCharCount = 0 ;
105105 /*
106- * @var inCoutingState {boolean} reset to true after a new line
106+ * @var inCountingState {boolean} reset to true after a new line
107107 * @private
108108 */
109- let inCoutingState = true ;
109+ let inCountingState = true ;
110110 const chToCheck = indentation_uses_spaces ? " " : "\t" ;
111111 let inCheckState = false ;
112112 if ( ! first_encaps_node ) {
@@ -119,14 +119,12 @@ module.exports = {
119119 offset ++ ;
120120 }
121121 while ( offset < textSize ) {
122- if ( inCoutingState ) {
122+ if ( inCountingState ) {
123123 if ( text [ offset ] === chToCheck ) {
124124 leadingWhitespaceCharCount ++ ;
125125 } else {
126126 inCheckState = true ;
127127 }
128- } else {
129- inCoutingState = false ;
130128 }
131129
132130 if (
@@ -143,7 +141,7 @@ module.exports = {
143141
144142 if ( text [ offset ] === "\n" ) {
145143 // Reset counting state
146- inCoutingState = true ;
144+ inCountingState = true ;
147145 leadingWhitespaceCharCount = 0 ;
148146 }
149147 offset ++ ;
You can’t perform that action at this time.
0 commit comments