lib/mdoc/document.rb in mdoc-0.0.5 vs lib/mdoc/document.rb in mdoc-0.0.6
- old
+ new
@@ -12,10 +12,10 @@
# rubocop:disable MethodLength
def initialize(path)
if path.is_a?(String)
@file = path
- path = File.new(@file, 'r:utf-8')
+ path = File.new(@file, 'r:bom|utf-8')
end
# initialize performed processor list
@performed = {}