Re: A 'Box' Function

2006-04-18 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > Hey guys. > > I should warn you, first off, that I'm relatively new to Python. > Basically, what I'm trying to do is create a word-wrapping function > with the added complication that it add a character at the beginning > and end of each line, so that it encloses the tex

Re: A 'Box' Function

2006-04-17 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The word-wrapping function I'm working with is I have never used this, but it might help you >>> import textwrap >>> dir(textwrap) ['TextWrapper', '__all__', '__builtins__', '__doc__', '__file__', '__name__', '__revision__', '_white

A 'Box' Function

2006-04-17 Thread mikelaskey
Hey guys. I should warn you, first off, that I'm relatively new to Python. Basically, what I'm trying to do is create a word-wrapping function with the added complication that it add a character at the beginning and end of each line, so that it encloses the text in a sort of 'box': --