Strip newline from revision