Skip to content

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

@jwodder

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?

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