Using
[%- #Comment %]
Removed the newline character. Thanks for all the responses.
~Jp
On Jul 30, 2008, at 8:09 PM, C. Chad Wallace wrote:
>
> At 6:37 PM on 30 Jul 2008, John Bida wrote:
>
>> Is there a filter that removes the newline character that is created
>> by the template comments. For
At 6:37 PM on 30 Jul 2008, John Bida wrote:
> Is there a filter that removes the newline character that is created
> by the template comments. For example, if you used the following two
> files
>
>
> textbox.tt
>
> [%PROCESS text.tt %]
>
>
> text.tt
> [% ## Some type of file header ###%]
Use as follows:
[%- ## Some type of file header ### -%]
See "Chomping Whitespace" in documentation:
http://www.template-toolkit.org/docs/manual/Syntax.html#section_Chomping_Whitespace
By the way, this applies not only to comments.
--
Sincerely yours,
Oleg Kostyuk (CUB-UANIC)
__
Is there a filter that removes the newline character that is created
by the template comments. For example, if you used the following two
files
textbox.tt
[%PROCESS text.tt %]
text.tt
[% ## Some type of file header ###%]
[% ## Some type of file header ###%]
[% ## Some type of file header #