text wrapping help
Bjoern Schliessmann
usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Wed Feb 28 21:27:33 EST 2007
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.
More information about the Python-list
mailing list