On Thu, 24 Oct 2002, Arron Bates wrote:
> Date: Thu, 24 Oct 2002 02:20:12 +1000 > From: Arron Bates <[EMAIL PROTECTED]> > Reply-To: Struts Developers List <[EMAIL PROTECTED]> > To: Struts Developers List <[EMAIL PROTECTED]> > Subject: Re: HTML formatting of newline characters with bean:write tag > > Craig R. McClanahan wrote: > > >Can't you just embed your <bean:write> tag inside a <pre> element and get > >the same effect? > > > >Craig > > > pre opens a can of worms if the designers/managers are picky. For one, > it roots the browsers ability to word wrap. Use a regex in your action > code or some funky tag and replace them with <br /> 's before output. > It's the only way to get a true representation. > The other side of the coin is that maintaining line breaks in any fashion is *not* what people who are simply rendering HTML output want. At best, one could make this an option, but it's certainly never something I would use. > Arron. > Craig -- To unsubscribe, e-mail: <mailto:struts-dev-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-dev-help@;jakarta.apache.org>