Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I was having issues with my patch on https://www.drupal.org/node/2462417 and couldn't figure out why. Something's going on with mentions.module whenever I'm saving new lines of code to it, it seems to be generating trailing white spaces. This was originally on sublime - then I tried on vi, vim and still the same issue. Also on my windows machine.
The file format maybe corrupted? I've copied the whole file over to a new file in this patch.
Comment | File | Size | Author |
---|---|---|---|
mentions-module-file-issue.patch | 32.67 KB | jerrylow | |
Comments
Comment #1
Deciphered CreditAttribution: Deciphered commentedHow are you generating the patch? If you are using
git diff
you should be able to set git to ignore line endings. Google it.If that doesn't work, let me know.
Comment #2
jerrylow CreditAttribution: jerrylow commentedHey @Deciphered I have
git config --global core.autocrlf true
it definitely doesn't work for me. Its odd because the white spaces definitely doesn't show up on any other files in this repo/module except the .module file.
Comment #3
Deciphered CreditAttribution: Deciphered commentedCan't reproduce this and it's far from critical.
Comment #4
Deciphered CreditAttribution: Deciphered commentedI take it back, while I couldn't reproduce an issue making a patch, I can confirm that the line-endings where incorrect and they have been fixed now.