Bug 358494

Summary: KDevelop/KatePart/KTextEditor should always ensure that the file ends with a newline
Product: [Frameworks and Libraries] frameworks-ktexteditor Reporter: David Faure <faure>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christoph
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description David Faure 2016-01-24 18:37:46 UTC
I tried kdevelop-kf5 and gcc told me:

faviconscache.cpp:107:2: warning: no newline at end of file [-Wnewline-eof]

I think it's the IDE's job to ensure the file always ends with a newline.
A few hours later, I discovered a checkbox in the kdevelop settings. Well, I think it should be on by default.

Reproducible: Always
Comment 1 Christoph Cullmann 2016-01-31 21:15:44 UTC
Done, Kevin already changed the default, now the key is altered to enforce that the default will be in action for the next frameworks release.

https://phabricator.kde.org/rKTEXTEDITOR54536d9cc9da