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