[Python-Dev] textwrap.py

Greg Ward gward@python.net
Fri, 7 Jun 2002 17:39:47 -0400

On 07 June 2002, Tim Peters said:
> Greg seems to want to do it via setting vrbls on subclasses.  I couldn't
> care less how it's done, so long as I have some way to wrap for readability
> in a fixed-width font.

No subclass required -- just an instance:

  wrapper = TextWrapper()
  wrapper.fix_sentence_endings = 0

Not sure if "fix_sentence_endings" is the right spelling, but it'll do
for now.


Greg Ward - Unix weenie                                 gward@python.net
I just heard the SEVENTIES were over!!  And I was just getting in touch
with my LEISURE SUIT!!