trevorc / timebook

MIT License
0 stars 0 forks source link

CSV output on windows has double line endings #9

Open trevorc opened 15 years ago

trevorc commented 15 years ago

Original report by Steven Kryskalla (Bitbucket: __stevek, ).


When redirecting output from t to a CSV file on Windows the file contains an extra blank line after every line. This throws off the Excel formula.

I think if it was writing to a file you could use 'wb' mode to get the correct behavior, but since it's writing to stdout it's a little trickier.

Attached is a patch that fixes the issue for me.

Thanks for timebook BTW, it looks very handy!

-Steve