CRLF added in content.htm

Questions about how to install and problems installing - please read the documentation first!
olape
Posts: 3073
Joined: Fri Mar 13, 2015 8:47 am
Contact:

Re: CRLF added in content.htm

Post by olape » 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.
Gruß Olaf, Plugins for CMSimple_XH

Ich habe schon lange den Verdacht, dass so viele so eifrig auf Gender, Trans und Queer machen:
Weil sie für das Fachliche ganz einfach zu doof sind.

Michael_G
Posts: 202
Joined: Thu Feb 18, 2016 11:01 pm
Contact:

Re: CRLF added in content.htm

Post by Michael_G » Mon Jul 22, 2024 9:00 pm

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.
Ciao
Michael

Let's Encrypt!

olape
Posts: 3073
Joined: Fri Mar 13, 2015 8:47 am
Contact:

Re: CRLF added in content.htm

Post by olape » Tue Jul 23, 2024 5:35 am

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.
Gruß Olaf, Plugins for CMSimple_XH

Ich habe schon lange den Verdacht, dass so viele so eifrig auf Gender, Trans und Queer machen:
Weil sie für das Fachliche ganz einfach zu doof sind.

Post Reply