lib/spreadsheet/excel/row.rb in spreadsheet-0.6.1.3 vs lib/spreadsheet/excel/row.rb in spreadsheet-0.6.1.4

- old
+ new

@@ -51,10 +51,12 @@ date = _date data DateTime.new(date.year, date.month, date.day) + (data.to_f % 1) end def enriched_data idx, data # :nodoc: res = nil - if fmt = format(idx) + if link = @worksheet.links[[@idx, idx]] + res = link + elsif fmt = format(idx) res = if fmt.datetime? || fmt.time? _datetime data elsif fmt.date? _date data end