Common issues with patch creation and application
Last modified: August 14, 2008 - 04:06
In some instances, patches have been known to fail. This page is designed to help troubleshoot problems that people have in creating and applying patches.
patch unexpectedly ends in middle of line
Applying some patches generates the error:
patch unexpectedly ends in middle of line
This error seems to occur when the patch file ends on a line that includes nothing but whitespace characters. Patch files should always end with a Unix return character. If you encounter this error, check to see that the last line of your patch does not contain whitespace characters.
References: http://drupal.org/node/122734 and http://drupal.org/node/118660
