Summary: | JJ: Option: newline at end of file. | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Patrick ALLAERT <patrick.allaert> |
Component: | part | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | konrad.bucheli, oliver.henshaw, paul.f.fee, robert.leathley |
Priority: | HI | ||
Version: | SVN | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 4.9.0 | |
Sentry Crash Report: |
Description
Patrick ALLAERT
2010-11-05 12:00:00 UTC
I'd love to have that feature, it would be easy to implement but helps a lot. Any takers? I'd help with the implementation, otherwise I'll probably hack it in over the weekend. *** Bug 134852 has been marked as a duplicate of this bug. *** Hi Milian, any news about this? I would be glad to contribute myself but haven't enough competencies :( This is implemented in KDE 4.9. In the Open/Save config dialog, there is now an option called [ ] Append newline at end of file on save By default, it is off. You can also use a modeline called newline-at-eof: bool [default: false] either in the document itself, or in the .kateconfig file, or in the "Modes & Filetypes" config tab. If remove-trailing-spaces-on-save is enabled and the last line only contains spaces, no newline is appended. Thank you for fixing this. I also see KDevelop (4.4.1, KDE 4.9.5) exposes the same settings for its embedded KatePart. |