Big problem is invalid "carriage return" makes some editors.
There are platform's standarts:
*nux - LF
Win - CR LF
Mac - LF CR
but some editors makes "carriage return" with "CR CR LF" sequence!
Many editors, diff and merging tools don't understand this sequence and display empty line between each line.
This is difficult for merging changes, creating patches etc.
This actually for dfwiki, block_attendance and some other contribs.
In reply to Dmitry Pupinin
Re: Developers, please, check your editors settings!
by Samuli Karevaara -
Furthermore, according to Moodle developer documentation the Unix formatting is the preferred one. (Yes, 1.5.3 had some very odd "carriage return" compilations.)
In reply to Dmitry Pupinin
Re: Developers, please, check your editors settings!
Yeah, I agree! LF must be the only char!
Just for your info, Macs are so easy that they just used CR! Only W32 seems to use more that 1 char for that!
Just joking, of course, ciao
Just for your info, Macs are so easy that they just used CR! Only W32 seems to use more that 1 char for that!
Just joking, of course, ciao
Hi Dmitry,
thanks for the head's up
I think the HotPot module was one of the culprits. It's newlines seemed to be messed up. Perhaps, it was not the editor that was at fault, but the I had the wrong settings for my CVS client (TortoiseCVS). The conversion from Unix line endings to Windows line endings was not being done properly.
I changed the TortoiseCVS -> preferences -> Advanced:
Sandbox DOS/Unix: Autodetect (default to UNIX)
Then I went through and fixed the line endings in the HotPot files (in the HEAD branch at least) and commited them to the Moodle CVS.
I think that has fixed the problem, but if you notice any further problems with the HotPot module, please let me know.
many thanks
Gordon
thanks for the head's up
I think the HotPot module was one of the culprits. It's newlines seemed to be messed up. Perhaps, it was not the editor that was at fault, but the I had the wrong settings for my CVS client (TortoiseCVS). The conversion from Unix line endings to Windows line endings was not being done properly.
I changed the TortoiseCVS -> preferences -> Advanced:
Sandbox DOS/Unix: Autodetect (default to UNIX)
Then I went through and fixed the line endings in the HotPot files (in the HEAD branch at least) and commited them to the Moodle CVS.
I think that has fixed the problem, but if you notice any further problems with the HotPot module, please let me know.
many thanks
Gordon