@@ -31,7 +31,6 @@ class NokogiriPatches
31
31
# is called with. This works on MRI but causes an error in
32
32
# TruffleRuby.
33
33
match : 'static VALUE to_array(VALUE self, VALUE rb_node)' ,
34
- no_rstrip : true ,
35
34
replacement : <<-EOF
36
35
#ifdef NOKOGIRI_PACKAGED_LIBRARIES
37
36
static VALUE to_array(VALUE self, VALUE rb_node)
@@ -45,7 +44,6 @@ class NokogiriPatches
45
44
{ # It is not currently possible to pass var args from native
46
45
# functions to sulong, so we work round the issue here.
47
46
match : 'va_list args;' ,
48
- no_rstrip : true ,
49
47
replacement : <<-EOF
50
48
#ifdef NOKOGIRI_PACKAGED_LIBRARIES
51
49
va_list args;
@@ -65,7 +63,6 @@ class NokogiriPatches
65
63
{ # It is not currently possible to pass var args from native
66
64
# functions to sulong, so we work round the issue here.
67
65
match : /va_list args;[^}]*id_warning, 1, ruby_message\) ;/ ,
68
- no_rstrip : true ,
69
66
replacement : <<-EOF
70
67
#ifdef NOKOGIRI_PACKAGED_LIBRARIES
71
68
\\ &
@@ -77,7 +74,6 @@ class NokogiriPatches
77
74
{ # It is not currently possible to pass var args from native
78
75
# functions to sulong, so we work round the issue here.
79
76
match : /va_list args;[^}]*id_error, 1, ruby_message\) ;/ ,
80
- no_rstrip : true ,
81
77
replacement : <<-EOF
82
78
#ifdef NOKOGIRI_PACKAGED_LIBRARIES
83
79
\\ &
@@ -91,7 +87,6 @@ class NokogiriPatches
91
87
{ # It is not currently possible to pass var args from native
92
88
# functions to sulong, so we work round the issue here.
93
89
match : 'va_list args;' ,
94
- no_rstrip : true ,
95
90
replacement : <<-EOF
96
91
#ifdef NOKOGIRI_PACKAGED_LIBRARIES
97
92
va_list args;
@@ -113,7 +108,6 @@ class NokogiriPatches
113
108
} ,
114
109
{
115
110
match : 'xmlSetStructuredErrorFunc(NULL, Nokogiri_error_raise);' ,
116
- no_rstrip : true ,
117
111
replacement : <<-EOF
118
112
#ifdef NOKOGIRI_PACKAGED_LIBRARIES
119
113
xmlSetStructuredErrorFunc(NULL, Nokogiri_error_raise);
@@ -124,7 +118,6 @@ class NokogiriPatches
124
118
} ,
125
119
{
126
120
match : 'if(xpath == NULL)' ,
127
- no_rstrip : true ,
128
121
replacement : <<-EOF
129
122
#ifdef NOKOGIRI_PACKAGED_LIBRARIES
130
123
if(xpath == NULL)
0 commit comments