[Templates] Replacing literal back slashes
Clinton Gormley
clint at traveljury.com
Sat Mar 1 19:15:24 GMT 2008
> Try putting the \\n inside of single quotes. The \\n is probably being
> interpolated twice. Once inside the double quotes "" to be \n and then
> one more time inside of the regular expression.
>
In fact, it's even more than that. To get it to work, you need to use
this:
[% Foo.replace: [% foo.replace('\\\n',"\n"); %]
I would consider this a bug
Clint
More information about the templates
mailing list