tags 25157 confirmed
quit
Mark Karpov <markkarpov@openmailbox.org> writes:
> The ‘whitespace-cleanup’ command does not remove single trailing empty
> line anymore.
-(defcustom whitespace-empty-at-eob-regexp "^\\([ \t\n]+\\)"
+(defcustom whitespace-empty-at-eob-regexp "^\\([ \t\n]*\\(\n\\{2,\\}\\|[ \t]+\\)\\)\\'"
I don't quite understand why this more complicated expression is
necessary. Reuben, can you explain?