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

Merge from upstream #1

Merged
merged 1 commit into from Apr 9, 2020
Merged

Merge from upstream #1

merged 1 commit into from Apr 9, 2020

Conversation

harenbrs
Copy link
Owner

@harenbrs harenbrs commented Apr 9, 2020

split("\n") includes a final empty element "" if the final line
ends with \n (as it should for POSIX-compliant text files), which
then became an extra "\n".

splitlines() solves that, but there's a caveat, as it will split
on other types of line breaks too (like \r), which may not be
desired.

Fixes #526.

`split("\n")` includes a final empty element `""` if the final line
ends with `\n` (as it should for POSIX-compliant text files), which
then became an extra `"\n"`.

`splitlines()` solves that, but there's a caveat, as it will split
on other types of line breaks too (like `\r`), which may not be
desired.

Fixes #526.
@harenbrs harenbrs merged commit 86f56d1 into harenbrs:master Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants