lib/vcard.rb in vcard-0.2.12 vs lib/vcard.rb in vcard-0.2.13
- old
+ new
@@ -24,10 +24,10 @@
# lines.
def self.unfold(card) #:nodoc:
unfolded = []
prior_line = nil
- card.lines do |line|
+ card.each_line do |line|
line.chomp!
# If it's a continuation line, add it to the last.
# If it's an empty line, drop it from the input.
if line =~ /^[ \t]/
unfolded[-1] << line[1, line.size-1]