fix tabulation, trailing space, eof