To re or not to re ... ( word wrap function?)

Andrew Dalke dalke at dalkescientific.com
Fri Sep 21 22:33:49 EDT 2001


Skip Montanaro:
>I've been using this to format text for a long time.  It runs on a 1.5.2
>system so it doesn't use string methods or any 2.0+ syntax.

Another Python implementation I've seen (not tested) is Andrew
Kuchling's 'tex_wrap', which implements the line break method
used by TeX.

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

                    Andrew
                    dalke at dalkescientific.com






More information about the Python-list mailing list