Skip to content

flexible line terminators #2206

@mcandre

Description

@mcandre

Is your feature request related to a problem? Please describe

Hi,

Could asdf open up the line terminator sequences supported in .tool-version files?

  • LF (modern)
  • CRLF (Windows)
  • degenerate mixtures of LF/CRLF in poorly formatted text files

In asdf 0.15 and earlier, we seem to get subtle problems with .tool-version files that contain CRLF.

Perhaps a newer version has already addresed this. But I though I'd ask on behalf of users stuck on some older release versions.

Describe the proposed solution

Use a generic buffered line reader to perform line termination delimiting in an OS agnostic way.

To mockup an AST regex, /\r*\n+/m

Describe similar asdf features and why they are not sufficient

Not applicable.

Describe other workarounds you've considered

asdf is peerless!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions