[ZPT] newline_to_br problem

Umesh Soni u.soni@cs.ucl.ac.uk
Thu, 10 Jan 2002 00:20:40 +0000


Umesh Soni wrote:

> 
> Hi there,
> 
> I can't seem to get this simple example to render.
> (article is locally defined)
> 
> <div tal:define="pss modules/Products.PythonScripts.standard">
>   <span tal:replace="python:pss.newline_to_br(article.body) |
>           default">nothing to see</span>
> </div>
> 

Ok, I figured it out, the correct incantation was;

<div tal:define="pss modules/Products.PythonScripts.standard">
  <span tal:replace="structure python:pss.newline_to_br(article.body)
  or default">nothing to see </span>
</div>

sorry to bother you.

-- 
Umesh Soni