lib/mdoc/convert.rb in mdoc-0.0.1 vs lib/mdoc/convert.rb in mdoc-0.0.2
- old
+ new
@@ -14,10 +14,10 @@
content = resp.body
# convert the received content
content.gsub!('<title>undefined</title>', "<title>#{title}</title>")
content.gsub!('<a href="#" id="logo">undefined</a>', "<a href='\#' id='logo'>#{title}</a>")
- wfh = File.new(htmlname, 'w:utf-8')
+ wfh = File.new(htmlname, 'w')
wfh.write content
wfh.close
Launchy.open("file://" + htmlname)
end
end