CR+LF line terminators question #638
-
Hi, Joomla Component Builder create files with "DOS" CR+LF. I'm using Linux and when I edit files with Vim I see every line ending with ^M characters. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
JCB use the PHP global line break I can move the line endings to a global value I suppose, like I did with the tabs. They are all over the place, and updating them will be a serious task, but I can look at that option. I am working on a Linux/Ubuntu 20 system, and so JCB has only been maintained from the Unix base. Yet building your component on a DOS system will still effect the file type being created since we are using Joomla API to create the file.... hmmm that will be problematic. I mean changing the line breaks and yet the wrong file type will take us back the original problem and why in the first place moved to I will need to read over the code of the File class in Joomla to see if there is an override option. |
Beta Was this translation helpful? Give feedback.
-
@feddar I am looking over all the discussions that has not resulted in a conclusion... just with a quick browse. So I read you question again, and my response... seems like I missed the fact that you are compiling on Linux. So from what I can see, there are part in this document with the ^M and parts that do not have it. So I found that this must have happened at some point when a contributor touched the template files (the templates are not build again, but are static)... which is a real pain. I am going to work over them all to make sure they are making use of the correct line brakes. So the dynamic generated code is done correctly, it is an issue with the static files. |
Beta Was this translation helpful? Give feedback.
@feddar I am looking over all the discussions that has not resulted in a conclusion... just with a quick browse.
So I read you question again, and my response... seems like I missed the fact that you are compiling on Linux.
Here is what I get...
So from what I can see, there are part in this document with the ^M and parts that do not have it. So I found that this must have happened at some point when a contributor touched the template files (the templates are not build again, but are static)... which is a real pain. I am going to work over them all to make sure they are making use of the correct line brakes. So the dynamic generated code is done correctly, it is an issue with the static …