lib/timetrap/formatters/text.rb in timetrap-1.7.3 vs lib/timetrap/formatters/text.rb in timetrap-1.7.4

- old
+ new

@@ -17,16 +17,15 @@ self.output << "#{id_heading} Day Start End Duration Notes\n" last_start = nil from_current_day = [] sheets[sheet].each_with_index do |e, i| from_current_day << e - e_end = e.end_or_now self.output << "%-4s%16s%11s -%9s%10s %s\n" % [ (Timetrap::CLI.args['-v'] ? e.id : ''), format_date_if_new(e.start, last_start), format_time(e.start), format_time(e.end), - format_duration(e.start, e_end), + format_duration(e.duration), e.note ] nxt = sheets[sheet].to_a[i+1] if nxt == nil or !same_day?(e.start, nxt.start)