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

Fredrik Lundh fredrik@pythonware.com
Mon, 3 Jun 2002 11:12:34 +0200


greg wrote:

> Damn, I had no idea there was a body of computer science (however =
small)
> devoted to the art of filling text.  Trust Knuth to be there first.  =
Do
> you have a reference for this algorithm apart from GNU fmt's source
> code?  Google'ing for "knuth text fill algorithm" was unhelpful, ditto
> with s/fill/wrap/.

http://www.amk.ca/python/code/tex_wrap.html

> > Also, is there some existing module in which `wraptext' would fit =
nicely?
> > That might be better than creating a new module for not many =
functions.

"string" (yes, I'm serious).

</F>