neshtea / kimai_report

Utilities to generate reports for company contorlling
1 stars 2 forks source link

Follow RFC 4180 when generating CSV output #5

Closed kenranunderscore closed 5 days ago

kenranunderscore commented 5 days ago

Since we always enclose fields in double quotes, the only remaining thing to satisfy https://datatracker.ietf.org/doc/html/rfc4180 quoting rules is to effectively double any double quotes in the text.

(Maybe it would also be necessary to use CRLF instead of just LF, but that surely doesn't matter nowadays.)

I'll send a patch.