The is a coda plugin that makes sure there is an empty line at the bottom of the code document.