Web IDE and line endings

Normally I’d do this via .gitattributes or git config, but is there any way to configure the rules for line endings when using the Web IDE?

I recently had a case where the Web IDE was being used on Windows and inserting \r\n at the end, rather than the expected \n. This caused some text processing jobs to blow up.

I can work around it. For every text job in every project, but that’s brittle. I’d rather just let people know what settings to tweak.

1 Like

I have had this issue occur a few times as well when using the Web IDE in Firefox on Ubuntu 22.04

This causes git to interpret EVERY line as changed, severely polluting the git diff output unless --word-diff is used.

Why is the Web IDE changing the line ending for every line of a page when edited?

I created an issue on gitlab issue tracker: Organize issues as plain text in git repo (#475206) · Issues · GitLab.org / GitLab · GitLab

1 Like