Beside line breaks inside the text, there is another
cause for the linefeed:
out.println(text + "," + number);
^^
>From Javadoc:
Prints the string provided, followed by a CRLF
> -----Urspr�ngliche Nachricht-----
> Von: William Kaufman [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 17. Mai 2001 23:20
> An: '[EMAIL PROTECTED]'
> Betreff: RE: inserted line feeds in concatenated strings
>
>
> Orignal poster, correct me if I'm wrong, but it sounds like
> the _browser_ is
> on Unix, not necessarily the _server_. Asking about the line
> separator on
> the server will always return the same value, regardless of
> the browser; in
> fact, I can't think of any way to find out the proper line
> separator on the
> browser side.
>
> As long as you always output a newline ("\n", or 0x0A) as a
> line terminator,
> it should work on every server platform, and on every
> browser. This may
> mean, for instance, that you need to strip out carriage
> return ('\r', or
> 0x0D) from all your pre-formatted strings, at least if
> "line.separator" is
> not "\n".
> > >I'm generating a page with text between <PRE>...</PRE>.
> > >The text is generated via out.println(text + "," + number);
> > >and I get a line break after 'text' while under Unix
> browsers I don't
> > >get a line break.
> > >