lib/ugly_face/formatter/html.rb in ugly_face-0.7 vs lib/ugly_face/formatter/html.rb in ugly_face-0.8

- old
+ new

@@ -38,10 +38,10 @@ def set_path_and_file(path_or_io) return if path_or_io.nil? dir = File.dirname(path_or_io) FileUtils.mkdir_p dir unless File.directory? dir - @io = ensure_io(path_or_io, 'html') + @io = ensure_io(path_or_io) end def embed(src, mime_type, label) case(mime_type) when /^image\/(png|gif|jpg|jpeg)/