Skip to content

Commit 94243ef

Browse files
committed
Enable binary file mode for external files
1 parent fe8bf36 commit 94243ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rspec_api_documentation/writers/general_markup_writer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def write
1212
markup_example = markup_example_class.new(example, configuration)
1313
FileUtils.mkdir_p(configuration.docs_dir.join(markup_example.dirname))
1414

15-
File.open(configuration.docs_dir.join(markup_example.dirname, markup_example.filename), "w+") do |f|
15+
File.open(configuration.docs_dir.join(markup_example.dirname, markup_example.filename), "wb+") do |f|
1616
f.write markup_example.render
1717
end
1818
end

0 commit comments

Comments
 (0)