[Tutor] word wrapping a string

Lance lbrannma@cablespeed.com
Tue Nov 12 08:03:01 2002


Thanks all for your comments. I received this info from another member:


Take a look at the textwrap.py module, which lives in Python's CVS.  It will
be part of Python 2.3.  It won't handle your requirements for a single big
string, but if you have the two parts separated you should be able to swing
it.

http://cvs.sf.net/cgi-bin/viewcvs.cgi/python/python/dist/src/Lib/textwrap.py


----- Original Message -----
From: "Sean 'Shaleh' Perry" <shalehperry@attbi.com>
To: <tutor@python.org>
Sent: Monday, November 11, 2002 11:43 PM
Subject: Re: [Tutor] word wrapping a string


On Monday 11 November 2002 23:45, Magnus Lycka wrote:
> I've never seen exactly this coded in Python, but it's no big
> thing...
>

there is a CPAN perl module Text::WordWrap I believe that it would be handy
to
have a Python equivalent for.

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor