Re: (no subject)

Bill Moseley <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Message-ID <CAKhN_m5_hgr_LtjHToJO4A-PCn+vknywrFNHzxAb0ZS5V8MSbA@mail.gmail.com>
Take a look at
http://tt2.org/docs/manual/Syntax.html#section_Chomping_Whitespace

If that's not it, then post an example script and template.

On Wed, Apr 4, 2012 at 9:03 PM, Alex Zwinge <[email protected]> wrote:

> So this is my first time using tt2 so I might just be doing something
> wrong but I've poured through the docs on the website and can't seems
> to find anything.
>
> The issue is that when the template is rendered and outputted to a
> file tt seems like it's adding a bunch of extra line breaks between
> the lines. So for example if in my template I have
>
> <div>blah blah blah</div>
> <div>blah blah blah</div>
> <div>blah blah blah</div>
>
> When the file is output I end up with
> <div>blah blah blah</div>
>
> <div>blah blah blah</div>
>
> <div>blah blah blah</div>
>
> For 99.9% of the content I'm rendering it's a non-issue but it's
> wrecking havok for stuff in my <pre> tags. How can I fix this? I can't
> find any option (pre/post chomp are not it). The content in question
> is static, not perl/tt code.
>
> Vital stats:
> win7 64bit
> v5.14.2 (32bit)
> tt 2.24
>
> _______________________________________________
> templates mailing list
> [email protected]
> http://mail.template-toolkit.org/mailman/listinfo/templates
>



-- 
Bill Moseley
[email protected]

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.