Skip to content

Commit

Permalink
Use more explicit method to set nokogiri to_xml options (#438)
Browse files Browse the repository at this point in the history
  • Loading branch information
dometto authored Jan 18, 2023
1 parent 937aa55 commit fceebc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gollum-lib/markup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Markup
class << self

def to_xml_opts
{ :save_with => Nokogiri::XML::Node::SaveOptions::DEFAULT_XHTML ^ 1, :indent => 0, :encoding => 'UTF-8' }
{ :save_with => Nokogiri::XML::Node::SaveOptions::DEFAULT_XHTML & (~Nokogiri::XML::Node::SaveOptions::FORMAT), :indent => 0, :encoding => 'UTF-8' }
end

# Only use the formats that are specified in config.rb
Expand Down

0 comments on commit fceebc9

Please sign in to comment.