[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
wrapper.wrap(...)
Not sure if "fix_sentence_endings" is the right spelling, but it'll do
for now.
no-i-do-NOT-know-what-a-strategy-class-is,
Greg
--
Greg Ward - Unix weenie gward@python.net
http://starship.python.net/~gward/
I just heard the SEVENTIES were over!! And I was just getting in touch
with my LEISURE SUIT!!