-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows line endings cause a problem #70
Comments
@docwilmot I cannot reproduce this on Mac OS 🤔 ...are you running things on Windows? I just tried to convert https://git.drupalcode.org/project/menu_trail_by_path/-/tree/7.x-3.x, and I got no weird /**
- * Implements hook_menu()
+ * Implements hook_menu().
*/
function menu_trail_by_path_menu() { Can you please let me know of a D7 module that you were able to successfully reproduce this issue with? |
...in the meantime, I have taken a look at the regex used in
I have the following remarks for moment (untested, but pretty sure about these):
Anyway, I will need to be able to reproduce this issue first before I can try things and confirm 100% all of the above. I will also need to have a better understanding of the sequence of things coder_upgrade is trying to do, because as you said @docwilmot:
That ^^ may be the answer/solution. |
This was of course all "Greek" to me. 😄 |
If you clone a repo from Drupal it comes with Windows line endings. But when you run through CU its parser/writer routines use Linux line endings, so your file ends up with a mix. See this file here:
Notice all the line endings are
LF
until the end of theImplements hook_field_extra_fields().
comment, when it switches toCR
. This happens for all theImplements hook_wwwww().
lines. It may be this is the only write routine thats messed up since I haven't seen any other problems like this. If you convert the file to Linux line endings first, this doesnt happen.The text was updated successfully, but these errors were encountered: