lib/template.rb in narou-1.2.5 vs lib/template.rb in narou-1.2.5.1

- old
+ new

@@ -22,14 +22,14 @@ dest_filepath = File.join(dest_filepath, src_filename) end unless overwrite return if File.exists?(dest_filepath) end - result = get(src_filename, _binding).lstrip or return nil + result = get(src_filename, _binding) or return nil if Helper.os_windows? File.write(dest_filepath, result) else - File.binwrite(dest_filepath, result) + File.binwrite(dest_filepath, result.lstrip) end end # # テンプレートを元にデータを作成