Skip to content

Feature request: collectFile with newLine to use line endings found in the file(s) it is collecting #5790

Open
@nh13

Description

@nh13

When using the collectFile, the files being collected may have a specific line ending (e.g. \n for unix, \r\n for windows), but adding a newLine uses System.lineSeparator. I would like the line ending used in collectFile to prioritize the line endings that are found in the file. A potential solution would be to inspect the bytes as they're being written to detect any line endings and use that.

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