[Zope] Parse Text File (newbie q.)

Petru Paler ppetru@coltronix.com
Wed, 14 Jun 2000 20:00:26 +0300 (EEST)


> > I'm trying to display the contents of a text file in a DTML document.  It's 
> > easy enough to display but all the line breaks are removed.  Is there an 
> > easy way to bring in formatted text?
>  
> 
> Maybe you want something like:
> 
> <dtml-var " _.string.replace(text,'\n','<BR>')">

Even better, 
<dtml-var text newline_to_br>

-Petru