From: "Xavier Robin" <[EMAIL PROTECTED]>
I solved this thing myself by using the replace method described here :
http://search.cpan.org/~abw/Template-Toolkit-2.15/lib/Template/Manual/VMethods.pod

So in your template:

[% FOREACH message IN messages %]
<p>[% message.replace('\n', '<br>') %]
[% END %]

That should do it !

Xavier

Thanks for this.

I have found another way for this simple thing, but I might need this method for more complex changes.

For replacing \n I use [% message | html_line_break %].

Thanks.

Octavian


_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to