lib/mastalk/extensions.rb in mastalk-0.5.9 vs lib/mastalk/extensions.rb in mastalk-0.6.0
- old
+ new
@@ -25,9 +25,10 @@
Dir.foreach(SNIPPETS_FOLDER) do |file|
next if file == '.' || file == '..'
content = File.read(File.join(SNIPPETS_FOLDER, file))
start, stop = args(content)
extension(start, stop) do |body|
+ body_lines = body.strip.gsub(/(\n|\r)+/, "\n").split(/\n/)
ERB.new(remove_syntax_from(content)).result(binding)
end
end
@@extensions