def self.process_attribute_entry(reader, parent, attributes = nil, match = nil)
match ||= reader.has_more_lines? ? reader.peek_line.match(REGEXP[:attr_entry]) : nil
if match
name = match[1]
value = match[2].nil? ? '' : match[2]
if value.end_with? LINE_BREAK
value.chop!.rstrip!
while reader.advance
next_line = reader.peek_line.strip
break if next_line.empty?
if next_line.end_with? LINE_BREAK
value = "#{value} #{next_line.chop.rstrip}"
else
value = "#{value} #{next_line}"
break
end
end
end
store_attribute(name, value, parent.nil? ? nil : parent.document, attributes)
true
else
false
end
end