Remove tail white space to void warning during applying patch.