Remove trailing white space and ensure files end in blank line

whitespace: find . -type f -exec sed -i 's/ *$//' '{}' ';'
blank line: find . -type f -exec sed -i -e '$a\' '{}' ';'