I\'ve tried editing a php file in TextWrangler with line endings set to Unix, in NetBeans, and in vim. When I save the diff to a patch and then try to apply it, it gives whi
the one line solution is:
emacs -f delete-trailing-whitespace -f save-buffer -f kill-emacs
source: https://wiki.gnome.org/Projects/GnomeShell/Development/WorkingWithPatches