Re: [Templates] plugins... data returned... newline?

[prev] [thread] [next] [Date index for 2005/04/13]

From: Sean T Allen
Subject: Re: [Templates] plugins... data returned... newline?
Date: 19:51 on 13 Apr 2005
This is a multi-part message in MIME format.
--------------000309060500040403070708
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Josh Rosenbaum wrote:

>
> Is it possible your plugin is returning the newline? If it is, then:
> [% plugin.return_stuff() | trim -%] should do the trick.  If that's 
> not the case then I suggest turning on template compilation, and then 
> you can check out the compiled template to see if TT is actually 
> adding the newline there.

Thanks for the compile idea... Don't know why I didn't think of that.
I found the extra character. It was in the template file itself because 
somone managed to
add a dos newline at the end of that one line.



--------------000309060500040403070708
Content-Type: text/x-vcard; charset=utf-8;
 name="sean.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="sean.vcf"

begin:vcard
fn:Sean T. Allen
n:Allen;Sean T.
org:Ardis Marketing Group
adr;dom:;;;New York;NY
email;internet:sean@xxxxxxx.xxx
title:Tech Guru
x-mozilla-html:FALSE
url:http://ardismg.com/
version:2.1
end:vcard


--------------000309060500040403070708--

_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] plugins... data returned... newline?
Sean T Allen 19:00 on 13 Apr 2005

Re: [Templates] plugins... data returned... newline?
Josh Rosenbaum 19:24 on 13 Apr 2005

Re: [Templates] plugins... data returned... newline?
Sean T Allen 19:51 on 13 Apr 2005

Generated at 09:31 on 27 Apr 2005 by mariachi v0.52