samg / timetrap

Simple command line timetracker
http://rubygems.org/gems/timetrap
Other
1.48k stars 115 forks source link

Escape quotes in CSV formatter #152

Closed o0nj closed 4 years ago

o0nj commented 7 years ago

If some entries contain double-quotes in their notes after exporting to CSV, it confuses a CSV importer such as spreadsheet software during parsing. For example, Ruby's csv gem raises a CSV::MalformedCSVError exception.

The proposed modifications are supposed to fix that issue.

categulario commented 4 years ago

Awesome, too bad this wasn't included before.

Just a sugestion: always branch before making changes and make the pull-request from your branch. That way you'll be able to update your repo from this one before the branch is merged without breaking things.