Does ace support adding trailing newline?

editor

#1

Many editors add trailing newline to files when saving. This doesn’t seem to be the case with ace. Looked through the settings, and couldn’t find a setting that allows that?

Can ace automatically add trailing newline to files as it saves them?


#2

Sorry for not replying to google group question earlier,
This feature have not been requested before, so is not implemented yet.
It can be added similar to https://github.com/c9/c9.ide.ace.stripws/blob/master/stripws.js#L51, maybe even in the same plugin.
It should be off by default.