Skip to content

Commit

Permalink
Merge pull request #1020 from pan/fix_to_format
Browse files Browse the repository at this point in the history
fix customised save format options never override default option
  • Loading branch information
leejarvis committed Jan 17, 2014
2 parents 385b7e4 + b682292 commit 42d0340
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/nokogiri/xml/node.rb
Expand Up @@ -899,7 +899,6 @@ def to_format save_option, options
# FIXME: this is a hack around broken libxml versions
return dump_html if Nokogiri.uses_libxml? && %w[2 6] === LIBXML_VERSION.split('.')[0..1]

options[:save_with] |= save_option if options[:save_with]
options[:save_with] = save_option unless options[:save_with]
serialize(options)
end
Expand Down

0 comments on commit 42d0340

Please sign in to comment.