[Python-Dev] Where to put wrap_text()?

Skip Montanaro skip@pobox.com
Sat, 1 Jun 2002 22:43:14 -0500


    Tim> Note that regrtest.py also has a wrapper:

Me too...

    def wrap(s, col=74, startcol=0, hangindent=0):
        """Insert newlines into 's' so it doesn't extend past 'col'.

        All lines are indented to 'startcol'.  The indentation of the first 
        line is adjusted further by hangindent.
        """

I guess everybody has one of these laying about...  I'll be happy to dump
mine once something mostly equivalent is available.  I love to throw out
code.

Skip