M
mladen.adamovic
'm facing one weird problem with new lines if you have some spare time
perhaps you can think about it...
Doing some string manipulation with strings and when one String
displays to stdout in Netbeans it looks like :
INFO: sortedText=ad,ds,sadas,sadsdsadasdsdda,sd
but however when I print that String to web server (Glassfish v3) it
displays in HTML with random new lines as
ad,
ds,
sadas,
sadsdsadasdsdda,sd
The same behavior with Chrome and with Firefox, however if I copy and
paste that String in Gmail it doesn't contain those new lines any
longer.
I thought it might be \r issue, but I'm using linux and
line = line.replaceAll("\r", "");
didn't solve it.
This is nothing important but I'm curious why it might happen.
Thanks.
perhaps you can think about it...
Doing some string manipulation with strings and when one String
displays to stdout in Netbeans it looks like :
INFO: sortedText=ad,ds,sadas,sadsdsadasdsdda,sd
but however when I print that String to web server (Glassfish v3) it
displays in HTML with random new lines as
ad,
ds,
sadas,
sadsdsadasdsdda,sd
The same behavior with Chrome and with Firefox, however if I copy and
paste that String in Gmail it doesn't contain those new lines any
longer.
I thought it might be \r issue, but I'm using linux and
line = line.replaceAll("\r", "");
didn't solve it.
This is nothing important but I'm curious why it might happen.
Thanks.