Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle empty files and unknown line endings better #34

Merged
merged 1 commit into from
Sep 11, 2020

Conversation

ctubbsii
Copy link
Member

  • Return an empty result if the file is empty to skip the file
  • Only throw an exception when line ending is unknown, if the line
    ending configuration is set to KEEP
  • When reading all lines from the buffer into a list, do not depend on
    the previously detected line endings, and instead read all lines
    as-is, regardless of line ending previously detected

* Return an empty result if the file is empty to skip the file
* Only throw an exception when line ending is unknown, if the line
  ending configuration is set to KEEP
* When reading all lines from the buffer into a list, do not depend on
  the previously detected line endings, and instead read all lines
  as-is, regardless of line ending previously detected
@ctubbsii ctubbsii merged commit a82b09a into main Sep 11, 2020
@ctubbsii ctubbsii deleted the skip-empty-files branch September 11, 2020 03:27
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