Remove trailing spaces in Emacs templates