Re: Suggestion: Adding fmt like linebreak algorithm

From: Date: Tue, 25 Dec 2001 22:36:54 +0000
Subject: Re: Suggestion: Adding fmt like linebreak algorithm
References: 1  Groups: php.general php.pear.dev php.pear.general 
Request: Send a blank email to pear-dev+get-3702@lists.php.net to get a copy of this message
Hello, Dominik Roettsches wrote: > > Hi there, > > I've been searching for a PHP implementation of the GNU textformatting tool > fmt (http://www.gnu.org/software/textutils/textutils.html) which provides an > almost optimal linebreak for your text. > > I'm not skilled in enough in C programming to implement such a feature for > PHP but I'd really appreciate having this algorithm available in a simple > PHP function. > > My question is, if there's anyone who is interested in implementing this for > PHP, so that we can see it in one of the next releases? > > I think, the function would be very useful to do some pretty reformatting of > text when for example sending mail or in general doing text formatted > output. I have implemented exactly what you need in this class to compose and send MIME messages as it is important that messages to not have more than 75 characters per line. http://phpclasses.UpperDesign.com/browse.html/package/9 Regards, Manuel Lemos

« previous php.pear.dev (#3702) next »