lib/mdoc/writer.rb in mdoc-0.0.5 vs lib/mdoc/writer.rb in mdoc-0.0.6
- old
+ new
@@ -3,16 +3,16 @@
module Mdoc
class Writer
attr_accessor :tilt
def out(doc)
- Mdoc.opts.no_output ? $stdout : File.new(doc.out_file, 'w:utf-8')
+ Mdoc.opts.no_output ? $stdout : File.new(doc.out_file, 'wb')
end
def process!(doc)
@tilt = Tilt::ERBTemplate.new(doc.tpl_file)
oh = out(doc)
- oh.write @tilt.render doc
+ oh.write @tilt.render(doc)
oh.close unless oh == $stdout
end
end
end