back indenting more than once

master
Matt Huntington 10 years ago
parent 6691c0eec4
commit 9036f9da1d

@ -17,11 +17,10 @@ module.exports = function(file_path, callback){
return result; return result;
} }
var popHTMLStack = function(html_stack, current_line_num_tabs, previous_line_num_tabs){ var popHTMLStack = function(html_stack, current_line_num_tabs, previous_line_num_tabs){
var result = ''; var result = html_stack.pop();
for(var i = previous_line_num_tabs; i > current_line_num_tabs; i--){ for(var i = previous_line_num_tabs; i > current_line_num_tabs; i--){
result += html_stack.pop(); result += html_stack.pop();
result += html_stack.pop(); result += html_stack.pop();
result += html_stack.pop();
} }
return result; return result;
} }

@ -2,4 +2,8 @@ first line
second line second line
third line indented once third line indented once
indented twice indented twice
last line indented once twice again
thrice
frice
back once
last line back indented twice

Loading…
Cancel
Save