lib/formatador/table.rb in formatador-0.2.2 vs lib/formatador/table.rb in formatador-0.2.3

- old
+ new

@@ -82,10 +82,10 @@ def length(value) value.to_s.gsub(PARSE_REGEX, '').length end def calculate_datum(header, hash) - if (splits = header.to_s.split('.')).length > 1 + if !hash.keys.include?(header) && (splits = header.to_s.split('.')).length > 1 datum = nil splits.each do |split| d = (datum||hash) datum = d[split] || d[split.to_sym] || '' end