From: Daniel W. <d...@ni...> - 2005-01-07 13:29:09
|
Rolan Yang wrote: > Reporting a bug and a patch for it: > > Lengthy To: and CC: headers with multiple email addresses are truncated > instead of wrapping properly. > This patch fixes that problem: > > diff -u src/printer_friendly_bottom.php.old src/printer_friendly_bottom.php > --- src/printer_friendly_bottom.php.orig 2004-08-20 17:07:56.000000000 > -0400 > +++ src/printer_friendly_bottom.php 2004-08-20 17:08:55.000000000 -0400 > @@ -87,8 +87,12 @@ > $num_leading_spaces = 9; // nine leading spaces for indentation > > // sometimes I see ',,' instead of ',' seperating addresses *shrug* > - $cc = pf_clean_string(str_replace(',,', ',', $cc), > $num_leading_spaces); > - $to = pf_clean_string(str_replace(',,', ',', $to), > $num_leading_spaces); > + $cc = str_replace(',,', ',', $cc); > + $cc = str_replace(',', ', ', $cc); // place a space after , so > that pf_clean_string wraps it properly > + $cc = pf_clean_string($cc, $num_leading_spaces); > + $to = str_replace(',,', ',', $to); > + $to = str_replace(',', ', ', $to); // place a space after , so > that pf_clean_string wraps it properly > + $to = pf_clean_string($to, $num_leading_spaces); > > // the body should have no leading zeros > // disabled because it destroys html mail > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > -- > squirrelmail-devel mailing list > List Address: squ...@li... > List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=7139 > List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel > Hi Could you possibly say which version this patch applies to? I have had reports from users saying that their friendly version is too wide and that printing it out causes the last few words to be cut off on the right hand side. Is there any fix for that particular issue? Thanks, Dan |