List Info

Thread: CR-LF in saved files




CR-LF in saved files
user name
2007-09-16 04:46:48
Hello,

All files that I save from meshcms have DOS/Windows specific line endings: CR, LF (0x0d,0x0a).

How can I tell meshcms to save the files using UNIX specific line ending CR only (0x0a) ?

--
Arieh
Re: CR-LF in saved files
country flaguser name
Italy
2007-09-21 05:51:09
On Sun, 16 Sep 2007 11:46:48 +0200
"Arieh Skliarouk" <skliariehgmail.com> wrote:

> Hello,
> 
> All files that I save from meshcms have DOS/Windows
specific line
> endings: CR, LF (0x0d,0x0a).
> 
> How can I tell meshcms to save the files using UNIX
specific line
> ending CR only (0x0a) ?
> 

Hi,

MeshCMS uses the line ending of the underlying platform. You
can launch
Tomcat (or whatever servlet container) specifying the
option
-Dline.separator=n to force UNIX behavior.

Luciano


------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
MeshCMS-Discussion mailing list
MeshCMS-Discussionlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesh
cms-discussion

Re: CR-LF in saved files
user name
2007-11-06 08:30:04
Hello Luciano,

MeshCMS uses the line ending of the underlying platform. You can launch
Tomcat (or whatever servlet container) specifying the option
-Dline.separator=n to force UNIX behavior.

I already run the tomcat under Linux. To be sure, I have added the -Dline-separator parameter to tomcat startup scripts.

Still, files that I edit using meshcms-&gt;Control Panel->File Manager-&gt;Edit as a plain text,
after saving have that dreaded CR-LF line endings.

--
Arieh
Re: CR-LF in saved files
country flaguser name
Italy
2007-11-06 09:07:54
On Tue, 6 Nov 2007 16:30:04 +0200
"Arieh Skliarouk" <skliariehgmail.com> wrote:

> I already run the tomcat under Linux. To be sure, I
have added the
> -Dline-separator parameter to tomcat startup scripts.
> 
> Still, files that I edit using meshcms->Control
Panel->File
> Manager->Edit as a plain text,
> after saving have that dreaded CR-LF line endings.

Hi,

I don't think that MeshCMS can add CR-LF to files in Linux,
but maybe
if they are already in the file it can't remove them. Do
those files
come from Windows? If you want, you can try the new
"Clean HTML"
function available on SVN (it will change your HTML
anyway).

Luciano


------------------------------------------------------------
-------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and
a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
MeshCMS-Discussion mailing list
MeshCMS-Discussionlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesh
cms-discussion

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )