davidsantiago / clojure-csv

A library for reading and writing CSV files from Clojure
187 stars 35 forks source link

Ignore empty lines #7

Closed konrad-garus closed 13 years ago

konrad-garus commented 13 years ago

I think it should ignore empty lines, especially trailing.

davidsantiago commented 13 years ago

I disagree. If you are reading a CSV and a line has intentionally been left blank, that may have some meaning to the file format that is being expressed in the CSV. The programmer should be told that there was a line with nothing on it, and he has the resources to check for this condition himself, or simply prune the blank lines from the file with a call to filter or something like that.