lib/timetrap/formatters/text.rb in timetrap-1.8.9 vs lib/timetrap/formatters/text.rb in timetrap-1.8.10

- old
+ new

@@ -9,10 +9,10 @@ sheets = entries.inject({}) do |h, e| h[e.sheet] ||= [] h[e.sheet] << e h end - longest_note = entries.inject('Notes'.length) {|l, e| [e.note.rstrip.length, l].max} + longest_note = entries.inject('Notes'.length) {|l, e| [e.note.to_s.rstrip.length, l].max} (sheet_names = sheets.keys.sort).each do |sheet| self.output << "Timesheet: #{sheet}\n" id_heading = Timetrap::CLI.args['-v'] ? 'Id' : ' ' self.output << "#{id_heading} Day Start End Duration Notes\n" last_start = nil