Page 3 of 3

Re: CRLF added in content.htm

Posted: Mon Jul 22, 2024 5:35 am
by olape
Michael_G wrote:
Sun Jul 21, 2024 9:38 pm
I have not yet recognised any logic in this.
When editing / saving, XH changes the line endings of the edited page according to the operating system (Linux: LF, Windows: CRLF, MacOS should also have LF by now). The standard content is delivered with LF. As soon as you make changes to the content in the way intended for a CMS, i.e. via the included editor, this mix may occur.

Re: CRLF added in content.htm

Posted: Mon Jul 22, 2024 9:00 pm
by Michael_G
olape wrote:
Mon Jul 22, 2024 5:35 am
Michael_G wrote:
Sun Jul 21, 2024 9:38 pm
I have not yet recognised any logic in this.
When editing / saving, XH changes the line endings of the edited page according to the operating system (Linux: LF, Windows: CRLF, MacOS should also have LF by now). The standard content is delivered with LF. As soon as you make changes to the content in the way intended for a CMS, i.e. via the included editor, this mix may occur.
Thank you.
I have just observed this further and realised that all texts edited online are affected by the error.
I also had this with the CKEditor. The cause is neither the online editor nor FileZilla.
And the file size doesn't play a role either, as I first suspected.

BTW: In the meantime I am using TinyMCE (v5) only, because it is much better than the old CKEditor we can use within CMSimple_XH.

Re: CRLF added in content.htm

Posted: Tue Jul 23, 2024 5:35 am
by olape
Michael_G wrote:
Mon Jul 22, 2024 9:00 pm
The cause is neither the online editor nor FileZilla.
Exactly, but if Filezilla, or any FTP client in general, is set up correctly and the corresponding files (htm, html, txt, csv, php, ...) are transferred in ascii mode, the problem is not noticeable because the line endings are adapted to the target system.
However, if you only unpack XH locally from the zip file and work on a Windows system, this problem occurs.
Or if you transfer everything binary via FTP and the target system is a Windows server.