I'm new to Joomla! and I was asked to create some modules, I have succesfully created and installed about a dozen by following the documentation here (https://docs.joomla.org/J3.x:Creating_a_simple_module) but looking at the files on the server I noticed that all of my files of the modules now have an empty line separating each line of my scripts (CSS, JavaScript, PHP, HTML, XML and so on...)
If the original file appeared to be like this (this is just an example):
<?xml version="1.0" encoding="utf-8"?>
<extension type="module" version="3.1" client="site" method="install">
<files>
<filename module="mod_strikes">mod_strikes.php</filename>
<folder>system</folder>
<folder>tmpl</folder>
<folder>style</folder>
<folder>script</folder>
<filename>helper.php</filename>
<filename>index.html</filename>
<filename>mod_strikes.xml</filename>
</files>
<config>
</config>
</extension>
After the installation it looks like this:
<?xml version="1.0" encoding="utf-8"?>
<extension type="module" version="3.1" client="site" method="install">
<files>
<filename module="mod_strikes">mod_strikes.php</filename>
<folder>system</folder>
<folder>tmpl</folder>
<folder>style</folder>
<filename>helper.php</filename>
<filename>index.html</filename>
<filename>mod_strikes.xml</filename>
</files>
<config>
</config>
</extension>
I thought that there could be some setting which may have modified my files during installation but the site manager in my office said that there is nothing which makes such things.
Is there someone else who has experienced such a situation? Mine is not just a curiosity because editing files with separate lines for me is tedious.
\n
instead of\r\n
in my editor? It is strange to me because if I upload the file to a normal folder (not a Joomla! one) on the same server it results as the original is...I can't understand why other modules (custom and non) are ok – Cliff Burton Mar 22 '16 at 14:49