Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

text wrapping help


  • From: usenet-mail-0306.20.chr0n0ss at spamgourmet.com (Bjoern Schliessmann)
  • Subject: text wrapping help
  • Date: Thu, 01 Mar 2007 03:27:33 +0100

Ryan K wrote:

> It doesn't even run but when I go through it interactively it
> seems okay. Once again, any help is appreciated.

I haven't tested yet, but why don't you make a list of words of the
text (with split), and then accumulate words in a list until the
next word would make the line too long. Then just join the word
list, fill with spaces until line end and start over.

Regards,


Bj?rn

-- 
BOFH excuse #325:

Your processor does not develop enough heat.