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

Support newlines specific to Python's str.splitlines() #15

Open
jwodder opened this issue May 9, 2024 · 0 comments
Open

Support newlines specific to Python's str.splitlines() #15

jwodder opened this issue May 9, 2024 · 0 comments
Labels
enhancement New feature or request therefor under consideration Dev has not yet decided whether or how to implement

Comments

@jwodder
Copy link
Owner

jwodder commented May 9, 2024

Python's str.splitlines() method treats the following as newline sequences in addition to the normal Unicode newlines already recognized by this library:

  • U+001C ("file separator")
  • U+001D ("group separator")
  • U+001E ("record separator")
    • Used by JSON Text Sequence (RFC 7464) to prefix each JSON item (suffixed by LF)

How widely are any of these used as any sort of newline sequence?

@jwodder jwodder added enhancement New feature or request therefor under consideration Dev has not yet decided whether or how to implement labels May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request therefor under consideration Dev has not yet decided whether or how to implement
Projects
None yet
Development

No branches or pull requests

1 participant