Subject: pkg/20503: Provide p5-Text-Format
To: None <>
From: None <>
List: netbsd-bugs
Date: 02/26/2003 16:08:22
>Number:         20503
>Category:       pkg
>Synopsis:       Provide p5-Text-Format
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 26 16:09:00 PST 2003
>Originator:     Jonathan Perkin
>Release:        1.6
British Broadcasting Corporation
NetBSD batfink.intra.nut 1.6 NetBSD 1.6 (GENERIC) #0: Sun Sep  8 19:43:40 UTC 2002 i386
batfink# cat DESCR

format()        Format text into a paragraph.  Text is first broken into
                words and then joined back together to make up the
                paragraph.  There are numerous attributes you can set to
                your liking.

paragraphs()    Treats each element of the array passed in as a separate
                paragraph and passes them to format() for formatting.
                The list returned will be then formatted into separate

center()        Centers all the lines that were passed in.

expand()        Expand tabs into spaces.

unexpand()      Turn spaces into tabs.  First calls expand() to expand
                tabs into spaces and then turns tabstop number of spaces
                into tabs, you can set tabstop size with tabstop().