Viewing a file with different line endings causes file to save with new line endings

If a file happens to be a markdown file made by a different editor (Typora, etc) it may contain <CR><NL> line endings. (On Windows)

After just viewing with Obsidian, the file is re-saved with new line endings: <NL>

This is painful for source control since the file was modified just by viewing it.


  • Operating system: Windows
  • Debug info:
    Obsidian version: v0.14.6
    Installer version: v0.14.6
    Operating system: Windows 10 Pro 10.0.19044
    Login status: not logged in
    Insider build toggle: off
    Live preview: on
    Legacy editor: off
    Base theme: dark
    Community theme: none
    Snippets enabled: 0
    Safe mode: off
    Plugins installed: 1
    Plugins enabled: 1
    1: Advanced Tables
1 Like

I don’t consider this a bug. You can add support to this feature request.

I can see there is a fine line between bug and feature here. BUT I would classify this as a bug because it SAVES a file that was not modified intentionally. Just opening the file causes a save that changes the line endings. This is very unexpected behavior.

1 Like