| 1 | = 2005/08/24
|
|---|
| 2 |
|
|---|
| 3 | Added $separator2 and tests for $separator and $separator2
|
|---|
| 4 |
|
|---|
| 5 | Aristotle Pagaltzis <pagaltzis at gmx.de> contributed a new version of
|
|---|
| 6 | expand() that is faster.
|
|---|
| 7 |
|
|---|
| 8 | Jarkko Hietaniemi <jhi at cc.hut.fi> sent in perl change #17917 which
|
|---|
| 9 | fixed a bug in wrap.
|
|---|
| 10 |
|
|---|
| 11 | Matthew Durante <matthew_durante at hotmail.com> and
|
|---|
| 12 | Don Buchholz <don at truedisk.com> sent in a doc patches.
|
|---|
| 13 |
|
|---|
| 14 | = 2001/09/29
|
|---|
| 15 |
|
|---|
| 16 | Philip Newton <Philip.Newton at gmx.net> sent in a clean patch that
|
|---|
| 17 | added support for defining words differently; that prevents
|
|---|
| 18 | Text::Wrap from untainting strings; and that fixes a documentation
|
|---|
| 19 | bug.
|
|---|
| 20 |
|
|---|
| 21 | So that fill.t can be used in the version included in the perl
|
|---|
| 22 | distribution, fill.t no longer uses File::Slurp.
|
|---|
| 23 |
|
|---|
| 24 | Both Sweth Chandramouli <svc at sweth.net> and Drew Degentesh
|
|---|
| 25 | <ddegentesh at daed.com> both objected to the automatic unexpand
|
|---|
| 26 | that Text::Wrap does on its results. Drew sent a patch which
|
|---|
| 27 | has been integrated.
|
|---|
| 28 |
|
|---|
| 29 | Way back in '97, Joel Earl <jrearl at VNET.IBM.COM> asked that
|
|---|
| 30 | it be possible to use a line separator other than \n when
|
|---|
| 31 | adding new lines. There is now support for that.
|
|---|
| 32 |
|
|---|
| 33 | = 2001/01/30
|
|---|
| 34 |
|
|---|
| 35 | Bugfix by Michael G Schwern <schwern at pobox.com>: don't add extra
|
|---|
| 36 | whitespace when working one an array of input (as opposed to a
|
|---|
| 37 | single string).
|
|---|
| 38 |
|
|---|
| 39 | Performance rewrite: use m/\G/ rather than s///.
|
|---|
| 40 |
|
|---|
| 41 | You can now specify that words that are too long to wrap can simply
|
|---|
| 42 | overflow the line. Feature requested by James Hoagland
|
|---|
| 43 | <hoagland at SiliconDefense.com> and by John Porter <jdporter at min.net>.
|
|---|
| 44 |
|
|---|
| 45 | Documentation changes from Rich Bowen <Rich at cre8tivegroup.com>.
|
|---|
| 46 |
|
|---|
| 47 | = 1998/11/29
|
|---|
| 48 |
|
|---|
| 49 | Combined Fill.pm into Wrap.pm. It appears there are versions of
|
|---|
| 50 | Wrap.pm with fill in them.
|
|---|
| 51 |
|
|---|
| 52 | = 1998/11/28
|
|---|
| 53 |
|
|---|
| 54 | Over the last couple of years, many people sent in various
|
|---|
| 55 | rewrites of Text::Wrap. I should have done something about
|
|---|
| 56 | updating it long ago. If someone wants to take it over from
|
|---|
| 57 | me, discuss it in perl-porters. I'll be happy to hand it
|
|---|
| 58 | over.
|
|---|
| 59 |
|
|---|
| 60 | Anyway, I have a bunch of people to thank. I didn't
|
|---|
| 61 | use what any of them sent in, but I did take ideas from
|
|---|
| 62 | all of them. Many sent in complete new implamentations.
|
|---|
| 63 |
|
|---|
| 64 | Ivan Brawley <ibrawley at awadi.com.au>
|
|---|
| 65 |
|
|---|
| 66 | Jacqui Caren <Jacqui.Caren at ig.co.uk>
|
|---|
| 67 |
|
|---|
| 68 | Jeff Kowalski <jeff.kowalski at autodesk.com>
|
|---|
| 69 |
|
|---|
| 70 | Allen Smith <easmith at beatrice.rutgers.edu>
|
|---|
| 71 |
|
|---|
| 72 | Sullivan N. Beck <sbeck at cise.ufl.edu>
|
|---|
| 73 |
|
|---|
| 74 | The end result is a very slight change in the API. There
|
|---|
| 75 | is now an additional package variable: $Text::Wrap::huge.
|
|---|
| 76 | When $huge is set to 'die' then long words will cause
|
|---|
| 77 | wrap() to die. When it is set to 'wrap', long words will
|
|---|
| 78 | be wrapped. The default is 'wrap'.
|
|---|
| 79 |
|
|---|
| 80 | <shout>LONG WORDS WILL NOW BE WRAPPED BY DEFAULT</shout>.
|
|---|
| 81 | This is a change in behavior.
|
|---|
| 82 |
|
|---|
| 83 | At the bottom of Text::Wrap, there was a function (fill())
|
|---|
| 84 | sitting there unpublished. There was a note that Tim Pierce
|
|---|
| 85 | had a faster version, but a search on CPAN failed to turn it
|
|---|
| 86 | up. Text::Fill is now available.
|
|---|
| 87 |
|
|---|