Browse files

fix encoding issue

  • Loading branch information...
1 parent 349ca72 commit 40f0abf74c9d4ab725d5c7db819296f8cd6bf442 @rkh rkh committed Mar 29, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 Rakefile
View
3 Rakefile
@@ -1,3 +1,4 @@
+# encoding: binary
require 'rake/clean'
require 'rdoc/markup/to_html'
require 'uri'
@@ -86,7 +87,7 @@ readme do |fn|
file "_includes/#{fn}.html" => ["_sinatra/#{fn}.rdoc", "Rakefile"] do |f|
html =
RDoc::Markup::ToHtml.new.
- convert(File.read("_sinatra/#{fn}.rdoc")).
+ convert(File.binread("_sinatra/#{fn}.rdoc")).
sub("<h1>Sinatra</h1>", "")
File.open(f.name, 'wb') { |io| io.write with_toc(html) }
end

0 comments on commit 40f0abf

Please sign in to comment.