]> granicus.if.org Git - python/commit
Took initial_tab and subsequent_tab away from the fill() method and
authorGreg Ward <gward@python.net>
Mon, 10 Jun 2002 21:37:12 +0000 (21:37 +0000)
committerGreg Ward <gward@python.net>
Mon, 10 Jun 2002 21:37:12 +0000 (21:37 +0000)
commit62080bee145c3ba97e239821b0f484629cc203b8
treef7bb3dfd45801f65b2d9e072a56b582f1e02dfc8
parent11ade1ddc053dcec884e2431b55fb1c1727c65d7
Took initial_tab and subsequent_tab away from the fill() method and
transformed them into the initial_indent and subsequent_indent instance
attributes.  Now they actually work as advertised, ie. they are
accounted for in the width of each output line.  Plus you can use them
with wrap() as well as fill(), and fill() went from simple-and-broken to
trivial-and-working.
Lib/textwrap.py