rubygem-multi_xml/multi_xml-ox-white-space.patch
zhang-yn de1174f873 test
Signed-off-by: 张一诺 <zhangyinuo4@h-partners.com>
2024-07-30 17:39:32 +08:00

21 lines
687 B
Diff

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