I want to take the svn diff of a file and fold it to 80 columns width.
So I did this
$ svn diff > ~/patch.diff
$ fold -w 78 ~/patch.diff > ~/patch-fold.diff
But when I try to apply the patch, I get the error like
patching file trunk/site/py/adminservices/admin.py
patch: **** malformed patch at line 20: )
The lines 19,20 are:
This obviously appears that the diff format is disturbed. How to correct this?