📄 changelog
字号:
Use warnings::warnif instead of just warn for columns < 2. Appled perrequest of Rafael Garcia-Suarez <rgarciasuarez at gmail.com>.= 2006/11/17Text::Tabs can handle newlines now so the BUGS section has been removedper request from Aristotle Pagaltzis.= 2006/07/11Further bomb-proofing to pass more tests: Dan Jacobson <jidanni at jidanni dot org> found another way to generate a "this shouldn't happen".= 2006/07/05 Made documentation and code changes to address perlbug:https://rt.perl.org/rt3/Ticket/Display.html?id=30229Added in changes from the distributed-with-perl version. This took care of perlbug: https://rt.perl.org/rt3/Ticket/Display.html?id=34902It also took care of suggestion from Matthijs Bomhoff <matthijsat bomhoff dot nl>.Made documentation changes (added EXAMPLES) as per a suggestionfrom Gabor Blasko <gblasko at cs dot columbia dot edu>belg4mit at MIT dot EDU reported that $columns==1 die'd. No longer.Added tests for each bug report.= 2005/08/24Added $separator2 and tests for $separator and $separator2Aristotle Pagaltzis <pagaltzis at gmx.de> contributed a new version ofexpand() that is faster.Jarkko Hietaniemi <jhi at cc.hut.fi> sent in perl change #17917 whichfixed a bug in wrap.Matthew Durante <matthew_durante at hotmail.com> and Don Buchholz <don at truedisk.com> sent in a doc patches.= 2001/09/29Philip Newton <Philip.Newton at gmx.net> sent in a clean patch thatadded support for defining words differently; that prevents Text::Wrap from untainting strings; and that fixes a documentationbug.So that fill.t can be used in the version included in the perldistribution, fill.t no longer uses File::Slurp.Both Sweth Chandramouli <svc at sweth.net> and Drew Degentesh <ddegentesh at daed.com> both objected to the automatic unexpandthat Text::Wrap does on its results. Drew sent a patch whichhas been integrated.Way back in '97, Joel Earl <jrearl at VNET.IBM.COM> asked thatit be possible to use a line separator other than \n whenadding new lines. There is now support for that.= 2001/01/30Bugfix by Michael G Schwern <schwern at pobox.com>: don't add extrawhitespace when working one an array of input (as opposed to a single string).Performance rewrite: use m/\G/ rather than s///.You can now specify that words that are too long to wrap can simplyoverflow the line. Feature requested by James Hoagland <hoagland at SiliconDefense.com> and by John Porter <jdporter at min.net>.Documentation changes from Rich Bowen <Rich at cre8tivegroup.com>.= 1998/11/29Combined Fill.pm into Wrap.pm. It appears there are versions ofWrap.pm with fill in them.= 1998/11/28Over the last couple of years, many people sent in variousrewrites of Text::Wrap. I should have done something aboutupdating it long ago. If someone wants to take it over fromme, discuss it in perl-porters. I'll be happy to hand itover.Anyway, I have a bunch of people to thank. I didn'tuse what any of them sent in, but I did take ideas fromall of them. Many sent in complete new implamentations. Ivan Brawley <ibrawley at awadi.com.au> Jacqui Caren <Jacqui.Caren at ig.co.uk> Jeff Kowalski <jeff.kowalski at autodesk.com> Allen Smith <easmith at beatrice.rutgers.edu> Sullivan N. Beck <sbeck at cise.ufl.edu>The end result is a very slight change in the API. Thereis now an additional package variable: $Text::Wrap::huge.When $huge is set to 'die' then long words will cause wrap() to die. When it is set to 'wrap', long words willbe wrapped. The default is 'wrap'.<shout>LONG WORDS WILL NOW BE WRAPPED BY DEFAULT</shout>. This is a change in behavior.At the bottom of Text::Wrap, there was a function (fill())sitting there unpublished. There was a note that Tim Piercehad a faster version, but a search on CPAN failed to turn itup. Text::Fill is now available.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -