Skip to content

[Bug] Window markdown file incorrectly being changed to unix file #174

Description

@BHare1985

Description

Opening a .md file and clicking any header or text in the preview pane instantly marks the file as having unsaved changes. This appears to be related to line endings (CRLF vs. LF).

Environment

  • OS: Windows 10
  • Ferrite version: 0.3.0
  • Installation method: Pre-built from website

Steps to Reproduce

  1. Open a Windows-created .md file.
  2. Open the preview pane and click on a header.
  3. Observe that the file now shows unsaved changes.
  4. Save the file under a new name.
  5. Compare the original and new file in a diff tool: the only difference is the line ending style (Windows vs. Unix).

Expected Behavior

No changes should be detected, as is the case with most editors/markdown editors.

Actual Behavior

The file is marked as modified, with line endings converted from CRLF to LF.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.3.1bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions