spit-csv: write header, even if there are no rows
Opened this issue · 1 comments
Hi,
I don't know if the current behaviour is the expected behaviour and that my expectation is wrong, or if this is a bug :) , but when I use spit-csv with a custom header (via :header ) and :prepend-header true, I would expect that the written file always gets a header, even if there are no rows.
The current behaviour is that if there are no rows, no header is written even if a :header is given and :prepend-header is true
I can write a workaround in my code, but I wonder if this should be fixed in spit-csv instead?
Good find! Thanks for reporting. That definitely violates my assumptions about what should happen. There's some new work I need to release that might fix this. If not though, well queue it up for work. Thanks!