Commit | Line | Data |
---|---|---|
58389ed2 | 1 | |
69e34dac S |
2 | = 2009/03/05 |
3 | ||
4 | Test improvements from Dave Mitchel sent back in 2005... | |
5 | ||
6 | Added code to increase $columns if it's not big enough to accommodate | |
7 | the subsequent tab. | |
8 | ||
9 | Minor documentation fixes from David Landgren <david at landgren.net>. | |
10 | ||
58389ed2 RGS |
11 | Use warnings::warnif instead of just warn for columns < 2. Appled per |
12 | request of Rafael Garcia-Suarez <rgarciasuarez at gmail.com>. | |
13 | ||
14 | = 2006/11/17 | |
15 | ||
16 | Text::Tabs can handle newlines now so the BUGS section has been removed | |
17 | per request from Aristotle Pagaltzis. | |
18 | ||
95925ace SP |
19 | = 2006/07/11 |
20 | ||
21 | Further bomb-proofing to pass more tests: Dan Jacobson <jidanni at | |
22 | jidanni dot org> found another way to generate a "this shouldn't happen". | |
23 | ||
24 | = 2006/07/05 | |
25 | ||
26 | Made documentation and code changes to address perlbug: | |
27 | https://rt.perl.org/rt3/Ticket/Display.html?id=30229 | |
28 | ||
29 | Added in changes from the distributed-with-perl version. This took | |
30 | care of perlbug: https://rt.perl.org/rt3/Ticket/Display.html?id=34902 | |
31 | It also took care of suggestion from Matthijs Bomhoff <matthijs | |
32 | at bomhoff dot nl>. | |
33 | ||
34 | Made documentation changes (added EXAMPLES) as per a suggestion | |
35 | from Gabor Blasko <gblasko at cs dot columbia dot edu> | |
36 | ||
37 | belg4mit at MIT dot EDU reported that $columns==1 die'd. No longer. | |
38 | ||
39 | Added tests for each bug report. | |
40 | ||
8dfcc161 RGS |
41 | = 2005/08/24 |
42 | ||
43 | Added $separator2 and tests for $separator and $separator2 | |
44 | ||
45 | Aristotle Pagaltzis <pagaltzis at gmx.de> contributed a new version of | |
46 | expand() that is faster. | |
47 | ||
48 | Jarkko Hietaniemi <jhi at cc.hut.fi> sent in perl change #17917 which | |
49 | fixed a bug in wrap. | |
50 | ||
51 | Matthew Durante <matthew_durante at hotmail.com> and | |
52 | Don Buchholz <don at truedisk.com> sent in a doc patches. | |
53 | ||
37a581db JH |
54 | = 2001/09/29 |
55 | ||
8dfcc161 | 56 | Philip Newton <Philip.Newton at gmx.net> sent in a clean patch that |
37a581db JH |
57 | added support for defining words differently; that prevents |
58 | Text::Wrap from untainting strings; and that fixes a documentation | |
59 | bug. | |
60 | ||
61 | So that fill.t can be used in the version included in the perl | |
62 | distribution, fill.t no longer uses File::Slurp. | |
63 | ||
8dfcc161 RGS |
64 | Both Sweth Chandramouli <svc at sweth.net> and Drew Degentesh |
65 | <ddegentesh at daed.com> both objected to the automatic unexpand | |
37a581db JH |
66 | that Text::Wrap does on its results. Drew sent a patch which |
67 | has been integrated. | |
68 | ||
8dfcc161 | 69 | Way back in '97, Joel Earl <jrearl at VNET.IBM.COM> asked that |
37a581db JH |
70 | it be possible to use a line separator other than \n when |
71 | adding new lines. There is now support for that. | |
72 | ||
73 | = 2001/01/30 | |
74 | ||
8dfcc161 | 75 | Bugfix by Michael G Schwern <schwern at pobox.com>: don't add extra |
37a581db JH |
76 | whitespace when working one an array of input (as opposed to a |
77 | single string). | |
78 | ||
79 | Performance rewrite: use m/\G/ rather than s///. | |
80 | ||
81 | You can now specify that words that are too long to wrap can simply | |
82 | overflow the line. Feature requested by James Hoagland | |
8dfcc161 | 83 | <hoagland at SiliconDefense.com> and by John Porter <jdporter at min.net>. |
37a581db | 84 | |
8dfcc161 | 85 | Documentation changes from Rich Bowen <Rich at cre8tivegroup.com>. |
37a581db JH |
86 | |
87 | = 1998/11/29 | |
88 | ||
89 | Combined Fill.pm into Wrap.pm. It appears there are versions of | |
90 | Wrap.pm with fill in them. | |
91 | ||
92 | = 1998/11/28 | |
93 | ||
94 | Over the last couple of years, many people sent in various | |
95 | rewrites of Text::Wrap. I should have done something about | |
96 | updating it long ago. If someone wants to take it over from | |
97 | me, discuss it in perl-porters. I'll be happy to hand it | |
98 | over. | |
99 | ||
100 | Anyway, I have a bunch of people to thank. I didn't | |
101 | use what any of them sent in, but I did take ideas from | |
102 | all of them. Many sent in complete new implamentations. | |
103 | ||
8dfcc161 | 104 | Ivan Brawley <ibrawley at awadi.com.au> |
37a581db | 105 | |
8dfcc161 | 106 | Jacqui Caren <Jacqui.Caren at ig.co.uk> |
37a581db | 107 | |
8dfcc161 | 108 | Jeff Kowalski <jeff.kowalski at autodesk.com> |
37a581db | 109 | |
8dfcc161 | 110 | Allen Smith <easmith at beatrice.rutgers.edu> |
37a581db | 111 | |
8dfcc161 | 112 | Sullivan N. Beck <sbeck at cise.ufl.edu> |
37a581db JH |
113 | |
114 | The end result is a very slight change in the API. There | |
115 | is now an additional package variable: $Text::Wrap::huge. | |
116 | When $huge is set to 'die' then long words will cause | |
117 | wrap() to die. When it is set to 'wrap', long words will | |
118 | be wrapped. The default is 'wrap'. | |
119 | ||
120 | <shout>LONG WORDS WILL NOW BE WRAPPED BY DEFAULT</shout>. | |
121 | This is a change in behavior. | |
122 | ||
123 | At the bottom of Text::Wrap, there was a function (fill()) | |
124 | sitting there unpublished. There was a note that Tim Pierce | |
125 | had a faster version, but a search on CPAN failed to turn it | |
126 | up. Text::Fill is now available. | |
127 |