File: ox_spaces.patch

package info (click to toggle)
ruby-multi-xml 0.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 216 kB
  • sloc: ruby: 1,231; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 952 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Update for ox > 2.4.11
Author: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= <valtri@civ.zcu.cz>
Date: Thu, 18 May 2017 23:10:48 +0200
Origin: https://github.com/sferik/multi_xml/commit/f9d18d87c3340aa53f524524bf189b99459ab1e6.patch
Bug: https://github.com/sferik/multi_xml/issues/62
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=882718
Reviewed-by: Cédric Boutillier <boutil@debian.org>

There is more pedantic parsing of white-space characters in ox > 2.4.11. Better to set explicitly the expected skip mode.
---
 lib/multi_xml/parsers/ox.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/lib/multi_xml/parsers/ox.rb
+++ b/lib/multi_xml/parsers/ox.rb
@@ -29,7 +29,7 @@
 
       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