Skip to content

Uniform line separator handling #775

Closed
@matklad

Description

@matklad

Linux and mac use \n for line endings, Windows uses \r\n, and we need to deal with it somehow.

Just using both wouldn’t work too well: we need to create edits to the documents, and worrying about line separators when editing code is too much of a hassle.

So we should use \n everywhere, and convert to \r\n at the boundary. Specifically, in the paerse query we should do the conversion in the “in” direction, and we should transform edits on the “out” direction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-hardfunA technically challenging issue with high impact

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions