Python module to format text into columns?

hamish_lawson at my-deja.com hamish_lawson at my-deja.com
Mon Nov 15 06:15:50 EST 1999


Is there a Python module that will take a list of
strings and wordwrap them columnwise, similar to
Perl's format mechanism? For example, if supplied
with the following strings

   "14/11/1999"
   "Here is a a paragraph of text."
   "Here is another paragraph of text."

and with appropriate specification of column
widths and alignments, it could produce something
like:

   14/11/1999   Here is a   Here is another
                paragraph   paragraph of text.
                of text.


Hamish Lawson


Sent via Deja.com http://www.deja.com/
Before you buy.




More information about the Python-list mailing list