lib/nilac/compile_loops.rb in nilac-0.0.4.3.9.6 vs lib/nilac/compile_loops.rb in nilac-0.0.4.3.9.7
- old
+ new
@@ -180,10 +180,10 @@
times_counter = loop.split(".times")[0].lstrip
times_counter = times_counter[1...-1] if times_counter.include?("(") and times_counter.include?(")")
- replacement_string = "for (_i = 0, _j = #{times_counter}; _i < _j; _i += 1) {\n\n#{compiled_block}\n\n}"
+ replacement_string = "for (_i = 0, _j = #{times_counter}; _i < _j; _i += 1) {\n\n#{compiled_block}\n\n}\n\n\n"
modified_file_contents[input_file_contents.index(original_loop)] = replacement_string
end
\ No newline at end of file