lib/rdoc/generator/markdown.rb in rdoc-markdown-0.3.1 vs lib/rdoc/generator/markdown.rb in rdoc-markdown-0.3.2
- old
+ new
@@ -154,10 +154,10 @@
out_file = Pathname.new("#{output_dir}/#{turn_to_path klass.full_name}")
out_file.dirname.mkpath
result = template.result(binding)
- File.write(out_file, result)
+ File.write(out_file, result.squeeze("\n"))
end
end
##
# Takes a class name and converts it into a Pathname