lib/rdoc/generator/markdown.rb in rdoc-markdown-0.3.3 vs lib/rdoc/generator/markdown.rb in rdoc-markdown-0.3.4

- old
+ new

@@ -152,12 +152,12 @@ template = ERB.new File.read(File.join(TEMPLATE_DIR, "classfile.md.erb")) out_file = Pathname.new("#{output_dir}/#{turn_to_path klass.full_name}") out_file.dirname.mkpath - result = template.result(binding) + result = template.result(binding).squeeze.gsub("\n ", "\n").squeeze("\n") - File.write(out_file, result.squeeze("\n")) + File.write(out_file, result) end end ## # Takes a class name and converts it into a Pathname