I must apologize .... my most recent note contained an error in description ... below is what the correct explanation of my problem. ------------------
>I've recently encountered a very strange issue that appears >to be related to HTML::Template > >I have many scripts at my site that generate email >messages, and I've noticed that the ones that >use HTML::Template to generate the body of the >message have recently been coming through with >"doubled up" line break. In other words, message >content that was formerly single spaced is now >double spaced. > >I've tested this by creating a script with various >approaches to generating the email message content, >and the only portion of the content that exhibits this >extra line break behavior is the portion that >is run through HTML::Template. > >Has anyone else experienced this issue, and if >so, figured out the cause? > >Any thoughts on what might cause such behavior? >We're running Apache/Perl on a Linux RedHat system > >This script code: ><code> >print MAIL "####### DIRECTLY QUOTED PRINT STATEMENT ##\n"; >print MAIL "Single spaced lines between hash marks\n"; >print MAIL "=> this represents line 1\n"; >print MAIL "=> this represents line 2\n"; >print MAIL "=> this represents line 3\n"; >print MAIL "=> this represents line 4\n"; >print MAIL "=> this represents line 5\n"; >print MAIL "####### DIRECTLY QUOTED PRINT STATEMENT ##\n"; ></code> > >comes through as: > ><output> >########################################## >Single spaced lines between hash marks >=> this represents line 1 >=> this represents line 2 >=> this represents line 3 >=> this represents line 4 >=> this represents line 5 >########################################## ></output> > >This script code: > ><code> >my $template = HTML::Template->new( > filename => "$tmpl_dir/CH_line_break_test.tmpl", > associate => $q, >); >$stuff = $template->output; > >print MAIL $stuff; ></code> > >comes through as: > ><output> >########################################## > >=> this represents line 1 > >=> this represents line 2 > >=> this represents line 3 > >=> this represents line 4 > >=> this represents line 5 > >########################################## ></output> > >Note: the Template file used for the above appears as: <template> ########################################## => this represents line 1 => this represents line 2 => this represents line 3 => this represents line 4 => this represents line 5 ########################################## </template> >C. Hagstrom >[EMAIL PROTECTED] > C. Hagstrom [EMAIL PROTECTED] ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Html-template-users mailing list Html-template-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/html-template-users