Skip to content
This repository was archived by the owner on Apr 23, 2026. It is now read-only.
This repository was archived by the owner on Apr 23, 2026. It is now read-only.

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

Description

@jwodder

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?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request thereforunder considerationDev has not yet decided whether or how to implement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions