I beg to differ. The first example will have a blank line between the two
lines:
element1
element2
While the second will not:
element1
element2
The problem might be that you need to manually insert spaces for the "soft
line breaks" in your source. If your editor automatically wraps each line,
the spot where the wrap occurs will not be interpreted correctly by the
browser when the file is sent for display.
I missed how you aree populating the vector. Are you reading in a file? I
can't explain it correctly, but "hard breaks" or "hard returns" are
interpreted as spaces, but the automatically inserted line breaks are not
understood and are ignored by the browser and therefore the text at those
points have no spaces between them.
-Bob
-----Original Message-----
From: Robert A. Crawford [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 01, 1999 10:53 AM
To: [EMAIL PROTECTED]
Subject: Re: Returned Vector items
On Thu, Apr 01, 1999 at 10:33:58AM -0500, Schmidt, Allen J. wrote:
> I have the Vector element wrapped in the <PRE> </PRE> tag BUT the text
> displayed is not one for one. Some parts of the element are correct -
others
> are 'butted' up next to the next part of the text. As stated, the view
> source shows it correctly but the browser does not. ?????
Does each element appear in <PRE> tags? IE, is it:
<PRE>element 1</PRE>
<PRE>element 2</PRE>
or
<PRE>
element 1
element 2
</PRE>
The first will behave like you describe. The second will
probably be what you want.
Generally, if the source is what you'd expect, but the display
isn't, it's an HTML error.
--
Robert Crawford [EMAIL PROTECTED]
http://www.iac.net/~crawford
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html