Skip to content

Commit

Permalink
Enable binary file mode for external files
Browse files Browse the repository at this point in the history
  • Loading branch information
dalizard committed Jan 16, 2014
1 parent fe8bf36 commit 94243ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def write
markup_example = markup_example_class.new(example, configuration)
FileUtils.mkdir_p(configuration.docs_dir.join(markup_example.dirname))

File.open(configuration.docs_dir.join(markup_example.dirname, markup_example.filename), "w+") do |f|
File.open(configuration.docs_dir.join(markup_example.dirname, markup_example.filename), "wb+") do |f|
f.write markup_example.render
end
end
Expand Down

0 comments on commit 94243ef

Please sign in to comment.