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