This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When you select a Java source template (e.g. Classes/Class) which has a final newline (which all templates should!) and create from template, the resulting file no longer has the final newline. This is annoying since text files as a rule should end with a newline.
[2008] There was a bug in IndentFileEntry; the final newline was lost during indentation of the source.
Also fixing for non-Java files (the original bug was in FileEntry.Format).
Found it is broken for XML files, will attach patch.
Created attachment 6216 [details] Suggested patch (untested)
It is broken for XML parsed entity template, currently the only client. Also all user's templates may suffer from it. It is copy pasted code: /*### this code is copied from FileEntry TT EXPECTS that all XML templates are encoded as UTF-8 FileEntry implementation used just platform default encoding ###*/ Integrated.
VERIFIED
Resolved for 3.4.x or earlier, no new info since then -> closing.