@@ -81,7 +81,7 @@ def each_pair
81
81
value << char
82
82
when ',' then
83
83
state = :key
84
- yield key . string . strip , value . string . rstrip
84
+ yield key . string . strip , value . string
85
85
key = StringIO . new
86
86
value = StringIO . new ;
87
87
else
@@ -93,7 +93,7 @@ def each_pair
93
93
when '\\' then state = :value_normal_escape
94
94
when ',' then
95
95
state = :key
96
- yield key . string . strip , value . string . rstrip
96
+ yield key . string . strip , value . string
97
97
key = StringIO . new
98
98
value = StringIO . new ;
99
99
else value << char
@@ -142,7 +142,7 @@ def each_pair
142
142
when ' ' then state = :value_end
143
143
when ',' then
144
144
state = :key
145
- yield key . string . strip , value . string . rstrip
145
+ yield key . string . strip , value . string
146
146
key = StringIO . new
147
147
value = StringIO . new ;
148
148
else raise Net ::LDAP ::InvalidDNError , "DN badly formed"
@@ -159,7 +159,7 @@ def each_pair
159
159
when ' ' then state = :value_end
160
160
when ',' then
161
161
state = :key
162
- yield key . string . strip , value . string . rstrip
162
+ yield key . string . strip , value . string
163
163
key = StringIO . new
164
164
value = StringIO . new ;
165
165
else raise Net ::LDAP ::InvalidDNError , "DN badly formed"
@@ -172,7 +172,7 @@ def each_pair
172
172
raise Net ::LDAP ::InvalidDNError , "DN badly formed" unless
173
173
[ :value , :value_normal , :value_hexstring , :value_end ] . include? state
174
174
175
- yield key . string . strip , value . string . rstrip
175
+ yield key . string . strip , value . string
176
176
end
177
177
178
178
##
0 commit comments