You can remove space easily by using an "-" sign either after [% or before %]
In other words: [%- or -%] Try that and see what it does to your output... 2011/2/7 Jiří Pavlovský <[email protected]> > 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 > -- Check out my LEGO blog at http://www.brickpile.com/ View my photos at http://flickr.com/photos/billward/ Follow me at http://twitter.com/williamward <#> <#> <#> <#>
_______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
