Is there any way to remove some space with backspace in PTT ?
Thanks n regards
Rajesh Saha
___
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates
Rajesh, sorry for personal reply, here is copy for list:
Probably, you need [%- and -%] instead of usual [% and %] ?...
http://search.cpan.org/~abw/Template-Toolkit-2.22/lib/Template/Manual/Syntax.pod#Chomping_Whitespace
Take a look here also:
http://search.cpan.org/~abw/Template-Toolkit-2.22/li
2009/10/27 Rajesh Saha :
> Hi,
>
> Actually, in my output, I am getting some spaces, which I didn't wanted to
> be. At the same time, I could not figure out, from where it is coming. So,
> as a work-around, I wanted something "backspace" so that I can eliminate
> that spaces.
>
> I have tried [%- s
Hi,
Actually, in my output, I am getting some spaces, which I didn't wanted to
be. At the same time, I could not figure out, from where it is coming. So,
as a work-around, I wanted something "backspace" so that I can eliminate
that spaces.
I have tried [%- something -%] also, but still the same o
Oleg Kostyuk wrote:
> Probably, you need [%- and -%] instead of usual [% and %] ?...
"To remove all whitespace including any number of newlines, use the '~'
character instead."
http://search.cpan.org/~abw/Template-Toolkit-2.22/lib/Template/Manual/Config.pod#PRE_CHOMP,_POST_CHOMP
Greetings
--
_
Hello,
PFA one testcase, includes one .pl file & the other one- template.
Here, my problem is that I can't remove the white spaces around "Jupiter"
with [%- -%] tag. Additionally, I want "Council" should be printed on the
same line of "Hyper Space Planning".
Perl version: 5.8.8
Template versio
Sorry, attachment was missing on earlier mail.
Here it's.
Regards,
Rajesh
On Wed, Oct 28, 2009 at 6:57 AM, Rajesh Saha wrote:
> Hello,
>
> PFA one testcase, includes one .pl file & the other one- template.
>
> Here, my problem is that I can't remove the white spaces around "Jupiter"
> with [%-
TT will only act on text that is included or within a TT block. Your spaces
are outside of TT's context. You can simply wrap your text with a filter:
[% FILTER collapse %]
Peoples of[%- planet -%] ,
your attention pls.
This is [% captain %] of the gale
It also looks like changing PRE_CHOMP and POST_CHOMP to "2" will do what you
want. "1" just works on space adjacent to a newline.
On Tue, Oct 27, 2009 at 8:35 PM, Rick wrote:
> TT will only act on text that is included or within a TT block. Your spaces
> are outside of TT's context. You can simp