Details
-
Bug
-
Resolution: Duplicate
-
Medium
Description
Current Behavior
When editing a file, e.g. the README in a project, using the online editor Bitbucket changes the line endings of the whole file from Unix to DOS (LF to CR+LF). This is really painful, because every single line is then reported as "changed".
Expected Behavior
The online editor should auto-detect the line endings, and save the file in the same format again. The behavior should match the one of typical programmers' IDEs or text editors, such as Eclipse, PyCharm, Notepad++, etc.
Optionally, the online editor could offer an option (drop-down box) to select the intended line-endings for the file being edited. The value preselected in this drop-down box should be the one that the online editor auto-detects.
Additional Information
I had to revert the README file manually using the "dos2unix" command line utility, and commit it again.