Merge lp:~trojan295/scratch/Bugfix-1352324 into lp:~elementary-apps/scratch/scratch
Proposed by
Damian Czaja
Status: | Merged |
---|---|
Approved by: | Artem Anufrij |
Approved revision: | 1402 |
Merged at revision: | 1404 |
Proposed branch: | lp:~trojan295/scratch/Bugfix-1352324 |
Merge into: | lp:~elementary-apps/scratch/scratch |
Diff against target: |
23 lines (+5/-3) 1 file modified
src/Services/Document.vala (+5/-3) |
To merge this branch: | bzr merge lp:~trojan295/scratch/Bugfix-1352324 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sergey "Shnatsel" Davidoff (community) | Needs Fixing | ||
Artem Anufrij (community) | Approve | ||
Review via email: mp+240506@code.launchpad.net |
Commit message
Adding a '\n' byte to the end of the file when saving.
Description of the change
Adding a '\n' byte to the end of the file when saving.
I have analyzed how looks a text file with multiple empty lines at the end in Vim and it looked like Scratch was losing the last '\n' byte. In Vim the '\n' is added at every end of a file, even without a empty line at the end. Now when you save a file in Scratch, it looks exactly like when you have done it in Vim. None empty line is lost.
To post a comment you must log in.
Does this happen everytime or just with the trim-trailing- whitespace plugin activated?
Anyway, if we could get this fixed it would be cool as it's so annoying to have all those "No new-line at the end of the file" messages in bzr.