Remove newline from the end of the patch