Skip to content

Line Ending Normalization Breaks Existing File Conventions #11

@akramcodez

Description

@akramcodez

Description

EditTool forcibly converts all CRLF (\r\n) line endings to LF (\n) when reading a file:

currentContent = currentContent.replace(/\r\n/g, '\n');

When the file is written back, this causes the entire file to switch to LF—even if only a single character was edited.

Impact

  • Full-file diffs in Git for CRLF-based repos
  • ESLint/Prettier errors when CRLF is enforced
  • Friction for Windows and cross-platform teams

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions