Re: [Zope] Parse Text File (newbie q.)

2000-06-14 Thread Petru Paler

  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


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Parse Text File (newbie q.)

2000-06-14 Thread Dieter Maurer

joel grimes writes:
  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?
You may wrap your text inside a "pre.../pre" HTML tag.


Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )