You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Sy...@swisscom.com on 2003/11/21 16:33:27 UTC

Line break problem

Hello,

Is someone has a problem with line break?

I have a problem:
I'm using Cocoon in and from Windows based machines.
There is a difference in line break between Windows and Unix/Linux machines:
-Windows counts a carriage return AND a line feed for each line break
-Unix/Linux count only a line feed for each line break

In my application (JXForm) I have <textarea> and this causes the problem:
I store the value of this textarea in a String.
If I add a line break the program add a "\r\n" (a carriage return and a line feed).
But when I want to display the textarea, it seems that the program works as a Unix machine (maybe a problem from Java) because a new line break is added each time I display it.

Is someone has a similar problem?

Thanks for any help
Sylvain

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Line break problem

Posted by Joerg Heinicke <jh...@virbus.de>.
 From only a few days ago:

http://marc.theaimsgroup.com/?t=106867057100002&r=1&w=2

Joerg

On 21.11.2003 16:33, Sylvain.Thevoz@swisscom.com wrote:
> Hello,
> 
> Is someone has a problem with line break?
> 
> I have a problem:
> I'm using Cocoon in and from Windows based machines.
> There is a difference in line break between Windows and Unix/Linux machines:
> -Windows counts a carriage return AND a line feed for each line break
> -Unix/Linux count only a line feed for each line break
> 
> In my application (JXForm) I have <textarea> and this causes the problem:
> I store the value of this textarea in a String.
> If I add a line break the program add a "\r\n" (a carriage return and a line feed).
> But when I want to display the textarea, it seems that the program works as a Unix machine (maybe a problem from Java) because a new line break is added each time I display it.
> 
> Is someone has a similar problem?
> 
> Thanks for any help
> Sylvain


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org