To remove trailing whitespace from the entire buffer, use any of the following:
‘M-x delete-trailing-whitespace’
(GnuEmacs version 21 or later). You can put this in‘before-save-hook’
to ensure that your files have no trailing whitespace:
(add-hook 'before-save-hook 'delete-trailing-whitespace)
Did the job, thanks!
ReplyDelete