fixing trailing newlines and tabs in pre and post files