make only one trailing newline