Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix encoding issue

  • Loading branch information...
commit 40f0abf74c9d4ab725d5c7db819296f8cd6bf442 1 parent 349ca72
Konstantin Haase rkh authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  Rakefile
3  Rakefile
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.