[thelist] Linebreaks in PHP/MySQL newsletter

Mike evolt at muinar.com
Fri Jan 7 04:36:25 CST 2005


Hi all

When I format newsletters using this code...

$nlText = wordwrap( $text,72 );

... some users get all the text on one line.

If I replace 'bad' linebreaks like this:

$text = ereg_replace( "\r\n","\n",$text );
$text = ereg_replace( "\r","\n",$text );
$nlText = wordwrap( $text,72 );

... some users get the newsletter with double linebreaks.

Of course, when I test it (Win2000, Win98, Eudora, Outlook, TheBat),
everything looks good, in both cases.

Your advice/experience?

Thanks!

Mike


_____  mike s. krischker  http://webdesign-schweiz.ch/
        webpro mailing list  http://webdesign-list.com/
        flashpro mailing list  http://flash-list.com/



More information about the thelist mailing list