Re: [Templates] removing whitespace problem

2011-02-08 Thread Dave Howorth
Ashley Pond V wrote: > 2011/2/7 Jiří Pavlovský : >> On 7.2.2011 16:45, Clinton Gormley wrote: >>> On Mon, 2011-02-07 at 15:22 +0100, Jiří Pavlovský wrote: "- name1 , name2 , and name 3 en". >> Thanks, nice solution >>> Note: In English, we don't use "a, b, and c", but "a, b and c", which >>> w

Re: [Templates] removing whitespace problem

2011-02-08 Thread Mike Raynham
On 07/02/11 14:22, Jiří Pavlovský wrote: >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". > It's worth noting that the original problem was caused by a combination of white space and ne

Re: [Templates] removing whitespace problem

2011-02-07 Thread Bill Ward
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ý > Hi, > > I Have a block like below. It will produce the following output when > included with the 'collapse' filter

Re: [Templates] removing whitespace problem

2011-02-07 Thread Ashley Pond V
2011/2/7 Jiří Pavlovský : > On 7.2.2011 16:45, Clinton Gormley wrote: >> On Mon, 2011-02-07 at 15:22 +0100, Jiří Pavlovský wrote: >>> "- name1 , name2 , and name 3 en". > Thanks, nice solution >> Note: In English, we don't use "a, b, and c", but "a, b and c", which >> would make the above: If no o

Re: [Templates] removing whitespace problem

2011-02-07 Thread Jiří Pavlovský
On 7.2.2011 16:45, Clinton Gormley wrote: > On Mon, 2011-02-07 at 15:22 +0100, Jiří Pavlovský wrote: >> 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". > [% > # non-destructive copy

Re: [Templates] removing whitespace problem

2011-02-07 Thread Clinton Gormley
On Mon, 2011-02-07 at 15:22 +0100, Jiří Pavlovský wrote: > 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". [% # non-destructive copy # drop .merge if you don't care if it is destr

Re: [Templates] removing whitespace problem

2011-02-07 Thread Mike Raynham
On 07/02/11 14:22, Jiří Pavlovský wrote: >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 t

Re: [Templates] removing whitespace problem

2011-02-07 Thread Mike Raynham
On 07/02/11 14:22, Jiří Pavlovský wrote: >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 t

Re: [Templates] removing whitespace problem

2011-02-07 Thread Oleg Kostyuk
[% FOREACH author IN COLUMN.list_authors %] [% author.get_name(LANGUAGE) | collapse %] [% IF loop.first && loop.last %] [%# do nothing if we have only one author %] [% ELSIF loop.last # "and" before last author %] and [% ELSE # comma between all other authors %]

[Templates] removing whitespace problem

2011-02-07 Thread Jiří Pavlovský
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 optio