Hi,
I Have a block like below. It will produce the following output when
included with the 'collapse' filter.:
"- name1 , name2 , and name 3 en".
I need to get rid of the space in front of comas, but cannot figure out
a way to do it. I tried all possible combinations of TRIM and CHOMP
options., Both globally and on tag levels to no avail.
Any help would be appreciated.
- [% FOREACH author IN COLUMN.list_authors %]
[% IF loop.last %]
[% IF COLUMN.number_of_authors == 2 %] and [% END %]
[% IF COLUMN.number_of_authors > 2 %], and [% END %]
[% author.get_name(LANGUAGE) %]
[% ELSIF loop.first %]
[% author.get_name(LANGUAGE) %]
[% ELSE %]
, [% author.get_name(LANGUAGE) %]
[% END %]
[% END # of authors loop%]
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates