Skip to content

Conversation

@DavidGriffith
Copy link

Honors # as a comment character. Removed code that ignores the first line of the .csv file as superfluous. The only reason for that code that I can think of is for comments.

Prior to this, the days would be rotated such that the days would be in
their proper places with the designated first day of the week appearing
in the leftmost column.  Unfortunately the days of the week were not
rotated.  This commit fixes that problem.
README.md specifies this, but the code didn't follow it.  This commit
fixes that.
simu added a commit that referenced this pull request Dec 21, 2025
* Skip empty lines or lines that start with a `#`
* Gracefully skip lines which don't have enough entries and lines for
  which we can't parse the date

Replaces #9 and #10
@simu simu mentioned this pull request Dec 21, 2025
@simu
Copy link
Owner

simu commented Dec 21, 2025

Thanks for the PR. I've incorporated this in #11 as part of making the CSV parsing more robust (2103615).

Side-note: skipping the first line is required for my specific use case with a CSV which is an export of a spreadsheet of birthday dates where the first row is supposed to be a header row but not exported as a comment by Google Sheets (possibly because it's not formatted as a header row).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants