[ZPT] textareas and spacing

Evan Simpson evan@zope.com
Sat, 08 Sep 2001 17:55:44 -0400


alan runyan wrote:

>     <textarea name="subject:lines" rows="3" cols="34"><p tal:repeat="subject
> contentSubjects" tal:replace="python:subject+'\n'">Subject of the
> item</p></textarea>
> 
> 
> i am in need of having a textarea display lines like you do in DTML.

You might be able to use:

<textarea name="subject:lines" rows="3" cols="34"
  tal:content="python:modules['string'].join(contentSubjects, 
'\n')">Subject of the item</textarea>

Cheers,

Evan @ zope