It seem to cut off the last CR from text-here. I.e. cat <<EOF >x ... CR at end^M EOF becomes just "CR at end" in the output file, that is ^M (aka CR) stripped. The attached workaround worked for me, but is, as usual, too ugly to sign it off.
Attachment:
fix-t4015-diff-whitespace.patch
Description: application/xxxxx