this works like for stripping trailing spaces one now has the correct content in the buffer after save
BUG: 450919
@waqar @dhaumann