Summary: | New line added on EOF | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | saif1988 |
Component: | kwrite | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED WORKSFORME | ||
Severity: | minor | CC: | kare.sars, nate, thomas.surrel |
Priority: | NOR | ||
Version First Reported In: | 18.08.1 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
saif1988
2018-11-27 15:58:17 UTC
This is a setting you can modify in Configure Kate > Open/Save > General > Append newline at end of file on save Sorry, I overlooked the fact that you were talking about kwrite. When working with strict file formats, one is typically using an advanced text edit (which is what Kate is) rather than the more simplistic KWrite. For the moment, you can simply use Kate instead of Kate and change this setting, as Thomas pointed out. However changing the default for KWrite seems like a reasonable enough request. You have the option available also in KWrite. Settings -> Configure Editor... -> Open/Save -> General -> Automatic Cleanups on Save -> Append newline at end of file on save Isn't this a horrible default? Not knowing that saving the file changes your data? No it isn't. What's horrible is when people have text files where all lines are terminated, but not the last line. Thankfully, since this is a user-configurable setting, we don't have to kill each other over it and everyone can have their own preference respected :) |