rubygem-multi_xml/multi_xml-ox-white-space.patch

21 lines
687 B
Diff
Raw Normal View History

Author: František Dvořák <valtri@civ.zcu.cz>
Date: Thu May 18 23:33:03 2017 +0200
Update for ox > 2.4.11
There is more pedantic parsing of white-space characters in ox > 2.4.11. Better to set explicitly the expected skip mode.
diff --git a/lib/multi_xml/parsers/ox.rb b/lib/multi_xml/parsers/ox.rb
index 9589cd2..98eef84 100644
--- a/lib/multi_xml/parsers/ox.rb
+++ b/lib/multi_xml/parsers/ox.rb
@@ -29,7 +29,7 @@ module MultiXml
def parse(io)
handler = Handler.new
- ::Ox.sax_parse(handler, io, :convert_special => true)
+ ::Ox.sax_parse(handler, io, :convert_special => true, :skip => :skip_return)
handler.doc
end