Re: Template parser eating newlines; any way to avoid this?
<[email protected]> Fri, 17 Jan 2003 15:24:44 +0100
| Newsgroups | gmane.comp.java.tapestry.devel |
|---|---|
| Message-ID | <[email protected]> |
The rendering is fine if you want to render HTML-pages. But i want to render a plain text template which i can use to generate email bodies. In such a case i cannot add tags to force line breaks or whitespace. I know that tapestry is not intended to render plain text templates, but i thought it would be nice if i could use it for that. Regards, Oliver > Hi Oliver, > > my understanding of HTML is that a newline character is treaded like a > space and > additional white space is not significant, so your code should render as: > > John Smith [email protected] > > If I need additional whitespace I tend to use: and <br/> for line > breaks. > > regards Malcolm > ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will allow you to extend the highest allowed 128 bit encryption to all your clients even if they use browsers that are limited to 40 bit encryption. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en